From: Kyeonghun Lee Date: Fri, 15 Apr 2016 06:28:36 +0000 (+0900) Subject: Add null check for msg_db_select_with_query X-Git-Tag: submit/tizen/20160422.053458~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F66090%2F1;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git Add null check for msg_db_select_with_query Change-Id: I2783d704f318dae2e027a8e8aac96765f7b30ee6 Signed-off-by: Kyeonghun Lee --- diff --git a/mapi/msg_storage.cpp b/mapi/msg_storage.cpp index 1130401..7009a72 100755 --- a/mapi/msg_storage.cpp +++ b/mapi/msg_storage.cpp @@ -867,7 +867,7 @@ EXPORT_API int msg_db_select_with_query(msg_handle_t handle, const char *query, CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE); msg_error_t err = MSG_SUCCESS; - if (handle == NULL || query == NULL) + if (handle == NULL || query == NULL || db_res == NULL || row_count == NULL || col_count == NULL) return MSG_ERR_INVALID_PARAMETER; MsgHandle* pHandle = (MsgHandle*)handle;