diff --git a/hwb1/src/hwb1/MyApplet.java b/hwb1/src/hwb1/MyApplet.java index 4872949..843f90f 100644 --- a/hwb1/src/hwb1/MyApplet.java +++ b/hwb1/src/hwb1/MyApplet.java @@ -52,7 +52,7 @@ public class MyApplet extends Applet { short length; byte[] buffer = apdu.getBuffer(); - if (buffer[ISO7816.OFFSET_CLA] != 0x80) { + if (buffer[ISO7816.OFFSET_CLA] != (byte)0x80) { ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED); } else { byte instruction = buffer[ISO7816.OFFSET_INS]; @@ -90,6 +90,8 @@ public class MyApplet extends Applet { ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED); break; } + + ISOException.throwIt(ISO7816.SW_NO_ERROR); } } }