summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwearable.cpp
diff options
context:
space:
mode:
authorAnchor Linden <anchor@lindenlab.com>2018-05-30 05:51:37 +0530
committerAnchor Linden <anchor@lindenlab.com>2018-05-30 05:51:37 +0530
commit71fa94b3665b4554470314f481c9f0a35f8e6ef2 (patch)
tree42c70f6b9df687aaf5e715060dde12b4f21ed22f /indra/newview/llviewerwearable.cpp
parent0a36c8d3be17032db20a9bdeff2b00ae2ed608a0 (diff)
[MAINT-8693] - fix null check
Diffstat (limited to 'indra/newview/llviewerwearable.cpp')
-rw-r--r--indra/newview/llviewerwearable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewerwearable.cpp b/indra/newview/llviewerwearable.cpp
index ae9ce37a28..2d7a0f920f 100644
--- a/indra/newview/llviewerwearable.cpp
+++ b/indra/newview/llviewerwearable.cpp
@@ -301,7 +301,7 @@ void LLViewerWearable::setTexturesToDefaults()
LLUUID LLViewerWearable::getDefaultTextureImageID(ETextureIndex index) const
{
const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = LLAvatarAppearanceDictionary::getInstance()->getTexture(index);
- const std::string &default_image_name = texture_dict->mDefaultImageName;
+ const std::string &default_image_name = texture_dict ? texture_dict->mDefaultImageName : "";
if (default_image_name == "")
{
return IMG_DEFAULT_AVATAR;