summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-11 17:49:58 +0200
committerAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-11 17:49:58 +0200
commit2050429e98c58eb3fcb980a289fe92215acb2993 (patch)
tree9715a1ff6e0afcc34d575f847ee2d4cbc29a47d5 /indra/newview
parentef9f4b38e976de1e2962b642155addb9ceab3aff (diff)
Fix possible null pointer access crash
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvocache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index d561d51de6..f52130f784 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -1863,13 +1863,13 @@ void LLVOCache::removeGenericExtrasForHandle(U64 handle)
auto* entry = mHandleEntryMap[handle];
if (entry)
{
+ LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << entry->mHandle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL;
removeEntry(entry);
}
else
{
//shouldn't happen, but if it does, we should remove the extras file since it's orphaned
- LL_WARNS("GLTF", "VOCache") << "Removing generic extras for handle " << entry->mHandle << "Filename: " << getObjectCacheExtrasFilename(handle) << LL_ENDL;
- LLFile::remove(getObjectCacheExtrasFilename(entry->mHandle));
+ LLFile::remove(getObjectCacheExtrasFilename(handle));
}
}