From 1b449fa055ea6c85b464bc799f196e0ab3b7026e Mon Sep 17 00:00:00 2001 From: Anchor Date: Wed, 20 Feb 2019 08:39:58 +0530 Subject: [SL-10079] - added null check --- indra/newview/llpanelvolume.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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(); + } } } -- cgit v1.2.3