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:
parent
ee9bcb3b9c
commit
5f7acf9202
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue