diff options
| author | Martijn Coenen <maco@google.com> | 2014-03-06 07:51:13 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-06 07:51:13 -0800 |
| commit | 1507c18f87da9906337237d34184d6ac8f1afabd (patch) | |
| tree | d53c021ce7f44c51dea8ad2a0dc7990050cb89e6 /core | |
| parent | 9a9916b58fb22da735d18a03beffb24b4d5cd9a3 (diff) | |
| parent | 29e55bef771ee1453017fbf73bb4de62d356e4fc (diff) | |
| download | frameworks_base-1507c18f87da9906337237d34184d6ac8f1afabd.zip frameworks_base-1507c18f87da9906337237d34184d6ac8f1afabd.tar.gz frameworks_base-1507c18f87da9906337237d34184d6ac8f1afabd.tar.bz2 | |
am 29e55bef: Merge "NFC: getNdefMessage() should throw exception if no tag in field."
* commit '29e55bef771ee1453017fbf73bb4de62d356e4fc':
NFC: getNdefMessage() should throw exception if no tag in field.
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/nfc/tech/Ndef.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/nfc/tech/Ndef.java b/core/java/android/nfc/tech/Ndef.java index 64aa299..f16dc3b 100644 --- a/core/java/android/nfc/tech/Ndef.java +++ b/core/java/android/nfc/tech/Ndef.java @@ -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; } |
