summaryrefslogtreecommitdiff
path: root/indra/newview/llpreview.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-10-27 01:42:45 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-10-27 01:46:31 +0300
commit0c0b66388fddb70c4e9ac7660ba5dd709bc4cfc9 (patch)
tree958ce97e4a8e3dc7ccb3a90bd838fcdecaf2490c /indra/newview/llpreview.cpp
parent65eec2ca8fb34fb2aca8e93c8ce6d8e39cfae3e9 (diff)
SL-18465 Crash opening Material Editor
Diffstat (limited to 'indra/newview/llpreview.cpp')
-rw-r--r--indra/newview/llpreview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpreview.cpp b/indra/newview/llpreview.cpp
index fc2de4844e..b9b2279e77 100644
--- a/indra/newview/llpreview.cpp
+++ b/indra/newview/llpreview.cpp
@@ -115,8 +115,11 @@ const LLInventoryItem *LLPreview::getItem() const
}
else if (mObjectUUID.isNull())
{
- // it's an inventory item, so get the item.
- item = gInventory.getItem(mItemUUID);
+ if (mItemUUID.notNull())
+ {
+ // it's an inventory item, so get the item.
+ item = gInventory.getItem(mItemUUID);
+ }
}
else
{