Crashfix: During cleanup gAgentAvatarp can already be 0.

Nicky 2012-07-07 22:10:43 +02:00
parent e2fc91714c
commit d1e924a71e
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@
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