diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-08-06 22:23:22 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-08-07 00:34:12 +0300 |
commit | 6459a3c5aaa94053ffe667da9268efc4f2bd3e46 (patch) | |
tree | 204b4a69351819cf2eaba4cfbbea5d38545ead52 /indra/newview | |
parent | 55f1c8b9797836c9816528bb5b772eb83b083b50 (diff) |
#4297 Crash on LLVOCache::writeToCache
handle/iter existed, but entry was null
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llvocache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 27c105c8d6..501828eee8 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -1875,11 +1875,11 @@ void LLVOCache::removeGenericExtrasForHandle(U64 handle) } // NOTE: when removing the extras, we must also remove the objects so the simulator will send us a full upddate with the valid overrides - auto* entry = mHandleEntryMap[handle]; - if (entry) + handle_entry_map_t::iterator iter = mHandleEntryMap.find(handle); + if (iter != mHandleEntryMap.end()) { - LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << entry->mHandle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL; - removeEntry(entry); + LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << handle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL; + removeEntry(iter->second); } else { |