Forum › MIFARE SDK › DESFire.getDFName throws exception › Reply To: DESFire.getDFName throws exception
First things first - your error is not related to SDK. Since that is what you see in Log. It's SYSTEM ERROR: ArrayIndexOutOfBounds.
Next, let me try to help nevertheless:
With this code sample I cannot see where the error could occur. But that error means that you you are trying to access some values in your ArrayList that are not filled.
Example:
dfNames.add("Test1");
dfNames.add("Test2");
And then if you try to access:
dfNames.get(3);
It will throw you ArrayOutOfBounds.
But can't say if this is the case with you. Could you tell me more about your code and mark the CODE LINE where it points this error to.
Best,
David
Next, let me try to help nevertheless:
With this code sample I cannot see where the error could occur. But that error means that you you are trying to access some values in your ArrayList that are not filled.
Example:
dfNames.add("Test1");
dfNames.add("Test2");
And then if you try to access:
dfNames.get(3);
It will throw you ArrayOutOfBounds.
But can't say if this is the case with you. Could you tell me more about your code and mark the CODE LINE where it points this error to.
Best,
David
+ 0
|
- 0