Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Forum MIFARE SDK Trying to read DESFire EV1 Card, requires Authentication. Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Re: Trying to read DESFire EV1 Card, requires Authentication.

2. March 2016 at 20:04
Hey there,

So I'm now able to read off the DESFire EV1 card successfully using the Advanced SDK, but I'm now having another issue. There are two file ids on the card, and I am able to read the data in first file (0) fine, but when I try to read the data from the second (1) I am getting this error when trying to use the readData(int, int, int) method:

java.lang.NullPointerException: src == null
at java.lang.System.arraycopy(Native Method)
at com.nxp.nfclib.desfire.DESFireEV1.ˊ(:6077)
at com.nxp.nfclib.desfire.DESFireEV1.ʻ(:6293)
at com.nxp.nfclib.desfire.DESFireEV1.ˊ(:5730)
at com.nxp.nfclib.desfire.DESFireEV1.readData(:3581)
at com.nxp.nfclib.desfire.DESFireEV1.readData(:3503)
...


Here's the offending code:
byte[] transactionFileData = idesFireEV1.readData(
1,
0,
16
);


Any suggestions on this error?

Thanks,
Michael
+ 0  |  - 0