Fixed: Crash during send message with multiple recips 84/76084/1 submit/tizen/20160623.065807
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Wed, 22 Jun 2016 15:06:42 +0000 (18:06 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Wed, 22 Jun 2016 15:08:36 +0000 (18:08 +0300)
Change-Id: Id6ca54e0bc1d6f14145ec5e20b8f05ac0742f7b4
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
src/Conversation/Main/Controller/src/Conversation.cpp

index 4a16a62..68fb52b 100644 (file)
@@ -679,15 +679,18 @@ void Conversation::onKeyDown(ConvRecipientsPanel &panel, Evas_Event_Key_Down &ev
         }
         else
         {
-            m_pContactsList->setSearchWorld(m_pRecipPanel->getEntryText());
-            m_pContactsList->requestSearch();
+            if(m_pContactsList)
+            {
+                m_pContactsList->setSearchWorld(m_pRecipPanel->getEntryText());
+                m_pContactsList->requestSearch();
+            }
         }
     }
 }
 
 void Conversation::onEntryFocusChanged(ConvRecipientsPanel &panel)
 {
-    if(!m_pRecipPanel->getEntryFocus())
+    if(!m_pRecipPanel->getEntryFocus() && m_pContactsList)
         m_pContactsList->clear();
 }