From e07d21639b9b004154bca8a7e3fbb5c4abb17d62 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Tue, 19 Apr 2011 13:41:05 -0600 Subject: a try fix for SH-1307: Crash on selection of some meshes. --- indra/newview/llfloatermodelpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index cdd2bcf8e3..c66b2255eb 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -2164,7 +2164,7 @@ void LLModelLoader::loadTextures() //----------------------------------------------------------------------------- bool LLModelLoader::isNodeAJoint( domNode* pNode ) { - if ( pNode->getName() == NULL) + if ( !pNode || pNode->getName() == NULL) { return false; } -- cgit v1.2.3