diff --git a/android/src/main/java/im/status/keycard/android/NFCCardChannel.java b/android/src/main/java/im/status/keycard/android/NFCCardChannel.java index fce8a15..dc93cd0 100644 --- a/android/src/main/java/im/status/keycard/android/NFCCardChannel.java +++ b/android/src/main/java/im/status/keycard/android/NFCCardChannel.java @@ -32,6 +32,8 @@ public class NFCCardChannel implements CardChannel { return response; } catch(SecurityException e) { throw new IOException("Tag disconnected", e); + } catch(IllegalArgumentException e) { + throw new IOException("Malformed card response", e); } }