Currently nfc_ndef_record_get_uri sometimes returns NFC_ERROR_NONE
while not setting uri parameter correctly.
[Verification]
Code compiles without errors.
Change-Id: I9e420f8317c561849bd241f36d767c9c17df85ad
Signed-off-by: Jakub Skowron <j.skowron@samsung.com>
LoggerD("Entered");
char* uri = NULL;
int result = nfc_ndef_record_get_uri(handle, &uri);
- if (NFC_ERROR_NONE != result) {
+ if (NFC_ERROR_NONE != result || !uri) {
LoggerE("Can't get record's uri: %d, %s", result,
NFCUtil::getNFCErrorMessage(result).c_str());
NFCMessageUtils::RemoveMessageHandle(message_handle);