Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit 94a5faf

Browse files
committed
MOPPAND-1569: Code fixes.
1 parent da666a0 commit 94a5faf

File tree

1 file changed

+1
-1
lines changed
  • id-card-lib/src/main/java/ee/ria/DigiDoc/idcard

1 file changed

+1
-1
lines changed

id-card-lib/src/main/java/ee/ria/DigiDoc/idcard/NFC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static TLV decode(String context, byte[] data, int start, int end, int...
151151

152152
public static TLV decodeResult(String context, byte[] data, int... tags) throws NFCException {
153153
int code = (((int) data[data.length - 2] & 0xff) << 8) | ((int) data[data.length - 1] & 0xff);
154-
if (code != 0x9000) throw new NFCException(context + String.format(": Invalid result %x", code));
154+
if (code != 0x9000 && code != 0x6985) throw new NFCException(context + String.format(": Invalid result %x", code));
155155
int start = 0;
156156
int end = data.length - 2;
157157
TLV tlv = null;

0 commit comments

Comments
 (0)