fix for possible crash on exit in self_av_string()

meow-7.2.2
Brad Payne (Vir Linden) 2012-11-29 11:06:10 -05:00
parent bf87920fc9
commit 47a2a2982d
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
std::string self_av_string()
{
return gAgentAvatarp->avString();
return gAgentAvatarp ? gAgentAvatarp->avString() : std::string("self_av_string error, gAgentAvatarp null");
}
// RAII thingy to guarantee that a variable gets reset when the Setter