diff --git a/hwb1/src/hwb1/MyApplet.java b/hwb1/src/hwb1/MyApplet.java index 0049ced..8684bda 100644 --- a/hwb1/src/hwb1/MyApplet.java +++ b/hwb1/src/hwb1/MyApplet.java @@ -81,7 +81,7 @@ public class MyApplet extends Applet { length = apdu.setIncomingAndReceive(); if (length > 20) { - // ToDo: Handle too much data. + ISOException.throwIt(ISO7816.SW_WRONG_LENGTH); } else { Util.arrayCopy(buffer, ISO7816.OFFSET_CDATA, storage, (short) 0, length); }