Fix CI crash

This commit is contained in:
2026-07-16 16:21:18 +08:00
parent 9957577cb9
commit cb7e911c35
4 changed files with 25 additions and 5 deletions
@@ -188,8 +188,11 @@ protected:
void TearDown() override
{
RenderManager::instance()->GetCacher()->SetProject(nullptr);
RenderManager::DestroyInstance();
// May be null when SetUp() skipped before creating the instance.
if (RenderManager::instance()) {
RenderManager::instance()->GetCacher()->SetProject(nullptr);
RenderManager::DestroyInstance();
}
project_.reset();
}