diff options
Diffstat (limited to 'src/com')
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index b046cfb..10cd1ad 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -1044,6 +1044,8 @@ public class NfcService extends Application implements DeviceHostListener { return ErrorCodes.ERROR_IO; } + if (msg == null) return ErrorCodes.ERROR_INVALID_PARAM; + if (tag.writeNdef(msg.toByteArray())) { return ErrorCodes.SUCCESS; } else { |