diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2017-03-15 01:24:59 +0200 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2017-03-15 01:24:59 +0200 |
commit | 7d386378732fb19875e7fb0a3d969d0ba02dc7b3 (patch) | |
tree | e5cc7f3d0960add7ae610c66f1ca7235a4e4174c | |
parent | 805691796a9a79a7360f7a678470b6ccc31ef1aa (diff) |
MAINT-7206 Fixed crash on doubleclick deselecting last mute type from the context menu
-rw-r--r-- | indra/newview/llblocklist.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llblocklist.cpp b/indra/newview/llblocklist.cpp index 08d6db4ceb..1589db15a5 100644 --- a/indra/newview/llblocklist.cpp +++ b/indra/newview/llblocklist.cpp @@ -341,6 +341,11 @@ void LLBlockList::onCustomAction(const LLSD& userdata) bool LLBlockList::isMenuItemChecked(const LLSD& userdata) { LLBlockedListItem* item = getBlockedItem(); + if (!item) + { + return false; + } + const std::string command_name = userdata.asString(); if ("block_voice" == command_name) |