Merge "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();
|
||||
}
|
||||
return msg;
|
||||
} else if (!tagService.isPresent(serviceHandle)) {
|
||||
throw new TagLostException();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user