Move length variable to proper scope

This commit is contained in:
Manuel Thalmann 2023-11-06 17:02:02 +01:00
parent 017fd64d2f
commit 88c978e898

View file

@ -65,7 +65,6 @@ public class MyApplet extends Applet {
* @param apdu the incoming APDU
*/
public void process(APDU apdu) {
short length;
byte[] buffer = apdu.getBuffer();
if (selectingApplet()) {
@ -92,6 +91,8 @@ public class MyApplet extends Applet {
ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
}
else {
short length;
switch (instruction) {
case 0x00:
case 0x04: