MAINT-6460 Crash calculating mesh complexity

meow-7.2.2
andreykproductengine 2016-07-25 23:43:37 +03:00
parent 0db98a6308
commit 1b1f4252e3
1 changed files with 1 additions and 1 deletions

View File

@ -3934,7 +3934,7 @@ const LLSD* LLMeshRepoThread::getMeshHeader(const LLUUID& mesh_id)
{
LLMutexLock lock(mHeaderMutex);
mesh_header_map::iterator iter = mMeshHeader.find(mesh_id);
if (iter != mMeshHeader.end())
if (iter != mMeshHeader.end() && mMeshHeaderSize[mesh_id] > 0)
{
return &(iter->second);
}