diff --git a/src/org/simalliance/openmobileapi/service/security/gpac/dataobjects/APDU_AR_DO.java b/src/org/simalliance/openmobileapi/service/security/gpac/dataobjects/APDU_AR_DO.java index 41f477e..f6d9e1a 100644 --- a/src/org/simalliance/openmobileapi/service/security/gpac/dataobjects/APDU_AR_DO.java +++ b/src/org/simalliance/openmobileapi/service/security/gpac/dataobjects/APDU_AR_DO.java @@ -106,7 +106,7 @@ public void interpret() // it contains APDU filter (APDUHeader | FilterMask) which should have length n*8. if( getValueLength() == 1 ){ mApduAllowed = (data[index] == 0x01); - } else if(getValueLength() % 8 == 0 ) { + } else if ((getValueLength() > 0) && (getValueLength() % 8 == 0)) { mApduAllowed = true; for( int i = index; i < index + getValueLength(); i +=8 ){