diff options
author | Changseok Oh <seok.oh@samsung.com> | 2013-04-11 20:10:15 +0900 |
---|---|---|
committer | Gerrit Code Review <gerrit2@kim11> | 2013-04-11 20:10:15 +0900 |
commit | 33a0af37dd67540240196522978caeae5551dba2 (patch) | |
tree | 0b49501892a75bb974f27159a038ee3ef352ced6 /plugin | |
parent | c43ca63ae5dd4274c8a0c7af9edf3ab185135464 (diff) | |
parent | 06cf97f25dfe4cd391ca05128366473585d3ca89 (diff) | |
download | msg-service-33a0af37dd67540240196522978caeae5551dba2.tar.gz msg-service-33a0af37dd67540240196522978caeae5551dba2.tar.bz2 msg-service-33a0af37dd67540240196522978caeae5551dba2.zip |
Merge "Append NULL check in getText" into tizen_2.1
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/mms_plugin/MmsPluginStorage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/mms_plugin/MmsPluginStorage.cpp b/plugin/mms_plugin/MmsPluginStorage.cpp index e77320b..f75115d 100755 --- a/plugin/mms_plugin/MmsPluginStorage.cpp +++ b/plugin/mms_plugin/MmsPluginStorage.cpp @@ -1244,6 +1244,9 @@ msg_error_t MmsPluginStorage::getMsgText(MMS_MESSAGE_DATA_S *pMmsMsg, char *pMsg int textLen = 0; bool bText = false; + if (pMmsMsg == NULL) + return MSG_ERR_NULL_POINTER; + // Get the text data from the 1st slide. for (int i = 0; i< pMmsMsg->pageCnt; ++i) { pPage = _MsgMmsGetPage(pMmsMsg, i); |