checking the error for open handler
authorByounghui <byounghui.lim@samsung.com>
Mon, 16 Sep 2013 02:08:34 +0000 (11:08 +0900)
committerByounghui <byounghui.lim@samsung.com>
Mon, 16 Sep 2013 02:08:34 +0000 (11:08 +0900)
Change-Id: I1ea0af33487c75c33f57d5bfd40bed1b9870d9e4
Signed-off-by: Byounghui <byounghui.lim@samsung.com>
src/FMsg_SmsMmsCallbackHandler.cpp

index 4251179..fd3b1bd 100644 (file)
@@ -179,6 +179,10 @@ _SmsMmsCallbackHandler::OpenMessageHandle(msg_handle_t& messageHandle)
        if (!__msgHandle)
        {
                err = msg_open_msg_handle(&__msgHandle);
+               if ( err != MSG_SUCCESS )
+               {
+                       __msgHandle = null;
+               }
        }
 
        messageHandle = __msgHandle;