viewer#1728 Crash in LLViewerRegion::probeCache

master
Andrey Kleshchev 2024-06-12 10:03:06 +03:00 committed by Andrey Kleshchev
parent 148786999d
commit f1a756bd76
1 changed files with 5 additions and 1 deletions

View File

@ -2836,7 +2836,11 @@ bool LLViewerRegion::probeCache(U32 local_id, U32 crc, U32 flags, U8 &cache_miss
if(entry->isState(LLVOCacheEntry::ACTIVE))
{
((LLDrawable*)entry->getEntry()->getDrawable())->getVObj()->loadFlags(flags);
LLDrawable* drawable = (LLDrawable*)entry->getEntry()->getDrawable();
if (drawable && drawable->getVObj())
{
drawable->getVObj()->loadFlags(flags);
}
return true;
}