1. simon_linden
  2. viewer-rabbit

Commits

Nicky  committed a78fdfb

Crashfix: Don't blindly trust getImage() returns a valid pointer.

  • Participants
  • Parent commits 9a24816
  • Branches default

Comments (0)

Files changed (1)

File indra/newview/llvoavatar.cpp

View file
 		return FALSE;
 	}
 
+	if( !getImage( te, index ) )
+	{
+		llwarns << "getImage( " << te << ", " << index << " ) returned 0" << llendl;
+		return FALSE;
+	}
+
 	return (getImage(te, index)->getID() != IMG_DEFAULT_AVATAR && 
 			getImage(te, index)->getID() != IMG_DEFAULT);
 }