From dafdb26ad62392c5137d2a7d532b139f2c9ffb80 Mon Sep 17 00:00:00 2001 From: ikarus Date: Sat, 4 May 2024 23:33:13 +0200 Subject: [PATCH] Tryed to fix a strange crash on some devices. --- .../java/de/syss/MifareClassicTool/Activities/TagInfoTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/TagInfoTool.java b/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/TagInfoTool.java index f1f43832..28027798 100644 --- a/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/TagInfoTool.java +++ b/Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/TagInfoTool.java @@ -127,6 +127,7 @@ public void onReadMore(View view) { private void updateTagInfo(Tag tag) { if (tag != null) { + NfcA nfca = NfcA.get(tag); // Check for MIFARE Classic support. mMFCSupport = Common.checkMifareClassicSupport(tag, this); @@ -157,7 +158,6 @@ private void updateTagInfo(Tag tag) { uid += ", CL3"; } uid += ")"; - NfcA nfca = NfcA.get(tag); // Swap ATQA to match the common order like shown here: // http://nfc-tools.org/index.php?title=ISO14443A byte[] atqaBytes = nfca.getAtqa();