diff options
author | Anchor Linden <anchor@lindenlab.com> | 2018-05-30 05:51:37 +0530 |
---|---|---|
committer | Anchor Linden <anchor@lindenlab.com> | 2018-05-30 05:51:37 +0530 |
commit | 71fa94b3665b4554470314f481c9f0a35f8e6ef2 (patch) | |
tree | 42c70f6b9df687aaf5e715060dde12b4f21ed22f /indra/llappearance | |
parent | 0a36c8d3be17032db20a9bdeff2b00ae2ed608a0 (diff) |
[MAINT-8693] - fix null check
Diffstat (limited to 'indra/llappearance')
-rw-r--r-- | indra/llappearance/llwearable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llappearance/llwearable.cpp b/indra/llappearance/llwearable.cpp index edcfd49bb4..6079913a8e 100644 --- a/indra/llappearance/llwearable.cpp +++ b/indra/llappearance/llwearable.cpp @@ -184,7 +184,7 @@ void LLWearable::createLayers(S32 te, LLAvatarAppearance *avatarp) { LLTexLayerSet *layer_set = NULL; const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = LLAvatarAppearanceDictionary::getInstance()->getTexture((ETextureIndex)te); - if (texture_dict->mIsUsedByBakedTexture) + if (texture_dict && texture_dict->mIsUsedByBakedTexture) { const EBakedTextureIndex baked_index = texture_dict->mBakedTextureIndex; @@ -197,7 +197,7 @@ void LLWearable::createLayers(S32 te, LLAvatarAppearance *avatarp) } else { - LL_ERRS() << "could not find layerset for LTO in wearable!" << LL_ENDL; + LL_WARNS() << "could not find layerset for LTO in wearable!" << LL_ENDL; } } |