Coverity issue fix 57/243857/3 submit/tizen/20200917.081550 submit/tizen/20200918.044755 submit/tizen/20200922.073834
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 10 Sep 2020 12:51:48 +0000 (18:21 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Tue, 15 Sep 2020 08:40:04 +0000 (14:10 +0530)
Change-Id: Ia5c65c30b3aaf9be0c512eec48ff74a78eee0570
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
plugin/mms_plugin/MmsPluginInternal.cpp

index 3a21279..febe5ae 100755 (executable)
@@ -751,7 +751,8 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
 
                char fullPath[MAX_FULL_PATH_SIZE+1] = {0, };
 
-               filename = MsgGetFileName(pRetrievedFilePath);
+               if (pRetrievedFilePath != NULL)
+                       filename = MsgGetFileName(pRetrievedFilePath);
 
                snprintf(fullPath, MAX_FULL_PATH_SIZE+1, "%s%s", MSG_IPC_DATA_PATH, filename);