throw new CRException(
"NFC Error code in the response to CR");
}
+ if (length != 22) {
+ throw new CRException(
+ "NFC wrong response size: " + (length-2));
+ }
return Arrays.copyOf(resp, length-2);
} catch (TagLostException e) {
throw new CRException("NFC connection lost", e);