break;
}
- if (pAddrInfo && pAddrInfo->addressVal != '\0')
+ if (pAddrInfo && pAddrInfo->addressVal[0] != '\0')
bundle_add_str(bundle_data, "address", pAddrInfo->addressVal);
msg_launch_app(MSG_MGR_APP_ID, bundle_data);
#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
MSG_MGR_CONTACT_INFO_S contactInfo = {0,};
MSG_MGR_ADDRESS_INFO_S tmpAddressInfo = {0,};
- if (msg_info->addressVal) {
+ if (msg_info->addressVal[0] != '\0') {
snprintf(tmpAddressInfo.addressVal, MAX_ADDRESS_VAL_LEN, "%s", msg_info->addressVal);
if (_is_valid_email(msg_info->addressVal)) {
tmpAddressInfo.addressType = MSG_ADDRESS_TYPE_EMAIL;