summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-03-24 16:52:09 +0200
committerandreykproductengine <akleshchev@productengine.com>2015-03-24 16:52:09 +0200
commit078c5a2cb7cac57a1a0f7c89a77dd460a4c3a3ba (patch)
tree2021ceb1cac34056eb3dd4c6dc96250ae48e1488 /indra
parentad854873709a9ed756231b39c24542cdfab51887 (diff)
MAINT-5024 crash in LLInspectToast
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llinspecttoast.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinspecttoast.cpp b/indra/newview/llinspecttoast.cpp
index 0bc7bd188d..d04378daaf 100755
--- a/indra/newview/llinspecttoast.cpp
+++ b/indra/newview/llinspecttoast.cpp
@@ -89,6 +89,11 @@ void LLInspectToast::onOpen(const LLSD& notification_id)
mConnection = toast->setOnToastDestroyedCallback(boost::bind(&LLInspectToast::onToastDestroy, this, _1));
LLPanel * panel = toast->getPanel();
+ if (panel == NULL)
+ {
+ LL_WARNS() << "Could not get toast's panel." << LL_ENDL;
+ return;
+ }
panel->setVisible(TRUE);
panel->setMouseOpaque(FALSE);
if(mPanel != NULL && mPanel->getParent() == this)