TizenRefApp-6770 Crash on notification from deleted message 79/81779/1
authorDmytro Dragan <dm.dragan@samsung.com>
Thu, 28 Jul 2016 09:30:34 +0000 (12:30 +0300)
committerDmytro Dragan <dm.dragan@samsung.com>
Thu, 28 Jul 2016 09:30:47 +0000 (12:30 +0300)
Change-Id: Idf9d398631d9f796c35ddfc497d8dee350096630
Signed-off-by: Dmytro Dragan <dm.dragan@samsung.com>
src/Common/Controller/src/NaviFrameController.cpp

index 96ff635..a28c94e 100644 (file)
@@ -81,7 +81,8 @@ void NaviFrameController::execCmd(const AppControlDefaultRef &cmd)
             insertToBottom(*new MsgThread(*this)); // Push thread list to the bottom
 
         Conversation *conv = getTopFrame<Conversation>(); // Check if conversation is open
-        if(type != AppControlDefault::MainType)
+        MessageRef msg = getMsgEngine().getStorage().getMessage(cmd->getMessageId()); //To avoid opening conversation if MsgId is invalid
+        if(type != AppControlDefault::MainType && msg != nullptr)
         {
             if(conv)
             {