Change-Id: Idf9d398631d9f796c35ddfc497d8dee350096630
Signed-off-by: Dmytro Dragan <dm.dragan@samsung.com>
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)
{