am a43f7cb0: am 1507c18f: am 29e55bef: Merge "NFC: getNdefMessage() should throw exception if no tag in field."
* commit 'a43f7cb01e3638607949465d7a872bd5b0ce7253': NFC: getNdefMessage() should throw exception if no tag in field.
This commit is contained in:
@@ -278,6 +278,8 @@ public final class Ndef extends BasicTagTechnology {
|
|||||||
throw new TagLostException();
|
throw new TagLostException();
|
||||||
}
|
}
|
||||||
return msg;
|
return msg;
|
||||||
|
} else if (!tagService.isPresent(serviceHandle)) {
|
||||||
|
throw new TagLostException();
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user