From 9c8555d695bfd315273dd0aae17b5b67e8f0109a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 13 Oct 2023 02:02:12 +0200 Subject: [PATCH] Report successful execution --- hwb1/src/hwb1/MyApplet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } }