summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-xindra/newview/llvoavatar.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index dbb9c218d3..47f7ce0f62 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -797,8 +797,11 @@ void LLVOAvatar::debugAvatarRezTime(std::string notification_name, std::string c
<< " : " << comment
<< llendl;
- LLSD metrics = gAgentAvatarp->metricsData();
- llinfos << gAgentAvatarp->avString() << " metrics " << metrics << llendl;
+ if (gAgentAvatarp && !gAgentAvatarp->isDead()) // not safe to call during ~LLVOAvatarself
+ {
+ LLSD metrics = gAgentAvatarp->metricsData();
+ llinfos << gAgentAvatarp->avString() << " metrics " << metrics << llendl;
+ }
if (gSavedSettings.getBOOL("DebugAvatarRezTime"))
{