From 75c1e74e485b7ce5274eb0fdd473b8c1ef9697a2 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Mon, 15 Apr 2013 18:12:15 -0500 Subject: [PATCH] Avoid using invalid iterator in LLNotifications::getChannel if channel is not found. --- indra/llui/llnotifications.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp index 8c11a50b8..c512f6816 100644 --- a/indra/llui/llnotifications.cpp +++ b/indra/llui/llnotifications.cpp @@ -1094,6 +1094,7 @@ LLNotificationChannelPtr LLNotifications::getChannel(const std::string& channelN if(p == mChannels.end()) { llerrs << "Did not find channel named " << channelName << llendl; + return LLNotificationChannelPtr(); } return p->second; }