Avoid using invalid iterator in LLNotifications::getChannel if channel is not found.

This commit is contained in:
Shyotl
2013-04-15 18:12:15 -05:00
parent 70e008bf98
commit 75c1e74e48

View File

@@ -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;
}