summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAnchor <none@none>2019-02-20 08:39:58 +0530
committerAnchor <none@none>2019-02-20 08:39:58 +0530
commit1b449fa055ea6c85b464bc799f196e0ab3b7026e (patch)
tree73624f93aee6dffa779a2e26e9701ba8c815a39c /indra
parentd3323fb316bd9a707cedfa7f730761b4bcd4fbe6 (diff)
[SL-10079] - added null check
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelvolume.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llpanelvolume.cpp b/indra/newview/llpanelvolume.cpp
index cd36c8f3f2..735eaa423d 100644
--- a/indra/newview/llpanelvolume.cpp
+++ b/indra/newview/llpanelvolume.cpp
@@ -400,7 +400,10 @@ void LLPanelVolume::getState( )
}
}
- gAgentAvatarp->updateMeshVisibility();
+ if (gAgentAvatarp)
+ {
+ gAgentAvatarp->updateMeshVisibility();
+ }
}
@@ -990,7 +993,10 @@ void LLPanelVolume::onCommitAnimatedMeshCheckbox(LLUICtrl *, void*)
}
}
- gAgentAvatarp->updateMeshVisibility();
+ if (gAgentAvatarp)
+ {
+ gAgentAvatarp->updateMeshVisibility();
+ }
}
}