summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-10-19 12:13:28 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-10-19 12:13:28 +0300
commite33be3b91feb069c654dca2aeb4f48ce2f9ef4ea (patch)
treeed1f9eeae7ecad9687c1e8c4633be40ded4ba857 /indra
parent4a187aec4ef05ef8c78fc23e0cf95a87566c8998 (diff)
MAINT-5753 FIXED Viewer crashes when opening a texture from object contents
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llpanelobjectinventory.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp
index 7e65ccad98..c4211d5508 100755
--- a/indra/newview/llpanelobjectinventory.cpp
+++ b/indra/newview/llpanelobjectinventory.cpp
@@ -905,7 +905,11 @@ void LLTaskTextureBridge::openItem()
LLPreviewTexture* preview = LLFloaterReg::showTypedInstance<LLPreviewTexture>("preview_texture", LLSD(mUUID), TAKE_FOCUS_YES);
if(preview)
{
- preview->setAuxItem(findItem());
+ LLInventoryItem* item = findItem();
+ if(item)
+ {
+ preview->setAuxItem(item);
+ }
preview->setObjectID(mPanel->getTaskUUID());
}
}