Avoid to crash when the subscription module handles a mwi message without the "operation" parameter.

git-svn-id: http://voip.null.ro/svn/yate@3757 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-10-27 13:53:15 +00:00
parent ee9bcb3b9c
commit 5f7acf9202
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ bool SubMessageHandler::received(Message& msg)
}
if (m_handler == Mwi) {
String* oper = msg.getParam("operation");
if (*oper != "notify")
if (!oper || *oper != "notify")
return false;
__plugin.handleMwi(msg);
return true;