diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-11-12 18:08:22 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-11-12 18:08:22 -0500 |
commit | 7f76507ddcae12795326efac31816ad829a34088 (patch) | |
tree | d098dee0a12a81b49ff88dde1d32791ac4a04b24 | |
parent | 7af2e9326537d2e57424367bd260744205fb76d8 (diff) |
EXT-2387 crash on dump local textures
we didn't check local_tex_obj for NULL before using it. checked to make sure
pointer is not null before calling ->getImage()
-rw-r--r-- | indra/newview/llvoavatarself.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 94081ada55..f382a09d19 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -1578,7 +1578,7 @@ void LLVOAvatarSelf::dumpLocalTextures() const llinfos << "LocTex " << name << ": Baked " << getTEImage(baked_equiv)->getID() << llendl; #endif } - else if (local_tex_obj->getImage() != NULL) + else if (local_tex_obj && local_tex_obj->getImage() != NULL) { if (local_tex_obj->getImage()->getID() == IMG_DEFAULT_AVATAR) { |