summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2014-03-06 07:51:13 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-06 07:51:13 -0800
commit1507c18f87da9906337237d34184d6ac8f1afabd (patch)
treed53c021ce7f44c51dea8ad2a0dc7990050cb89e6 /core
parent9a9916b58fb22da735d18a03beffb24b4d5cd9a3 (diff)
parent29e55bef771ee1453017fbf73bb4de62d356e4fc (diff)
downloadframeworks_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.java2
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;
}