for SH-4241: viewer crash shortly after login in LLViewerRegion::addNewObject
parent
7d88994edc
commit
92339583e6
|
|
@ -992,7 +992,7 @@ void LLViewerRegion::removeFromVOCacheTree(LLVOCacheEntry* entry)
|
|||
//add the visible entries
|
||||
void LLViewerRegion::addVisibleCacheEntry(LLVOCacheEntry* entry)
|
||||
{
|
||||
if(mDead || !entry)
|
||||
if(mDead || !entry || !entry->getEntry())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -244,6 +244,13 @@ U32 LLVOCacheEntry::getMinFrameRange()const
|
|||
void LLVOCacheEntry::addChild(LLVOCacheEntry* entry)
|
||||
{
|
||||
llassert(entry != NULL);
|
||||
llassert(entry->getParentID() == mLocalID);
|
||||
llassert(entry->getEntry() != NULL);
|
||||
|
||||
if(!entry || !entry->getEntry() || entry->getParentID() != mLocalID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
mChildrenList.push_back(entry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue