Commits

Anonymous committed 6e22c1b

Crashfix: During cleanup gAgentAvatarp can already be 0.

Comments (0)

Files changed (1)

indra/newview/llappearancemgr.cpp

 
 std::string self_av_string()
 {
-	return gAgentAvatarp->avString();
+	// On logout gAgentAvatarp can already be invalid
+	return isAgentAvatarValid() ? gAgentAvatarp->avString() : "";
 }
 
 // RAII thingy to guarantee that a variable gets reset when the Setter