From 7d386378732fb19875e7fb0a3d969d0ba02dc7b3 Mon Sep 17 00:00:00 2001
From: AndreyL ProductEngine <alihatskiy@productengine.com>
Date: Wed, 15 Mar 2017 01:24:59 +0200
Subject: [PATCH] MAINT-7206 Fixed crash on doubleclick deselecting last mute
 type from the context menu

---
 indra/newview/llblocklist.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/indra/newview/llblocklist.cpp b/indra/newview/llblocklist.cpp
index 08d6db4ceb1..1589db15a5f 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)
-- 
GitLab