Skip to content

Commit dafdb26

Browse files
committed
Tryed to fix a strange crash on some devices.
1 parent 353f789 commit dafdb26

File tree

1 file changed

+1
-1
lines changed
  • Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities

1 file changed

+1
-1
lines changed

Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/TagInfoTool.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public void onReadMore(View view) {
127127
private void updateTagInfo(Tag tag) {
128128

129129
if (tag != null) {
130+
NfcA nfca = NfcA.get(tag);
130131
// Check for MIFARE Classic support.
131132
mMFCSupport = Common.checkMifareClassicSupport(tag, this);
132133

@@ -157,7 +158,6 @@ private void updateTagInfo(Tag tag) {
157158
uid += ", CL3";
158159
}
159160
uid += ")";
160-
NfcA nfca = NfcA.get(tag);
161161
// Swap ATQA to match the common order like shown here:
162162
// http://nfc-tools.org/index.php?title=ISO14443A
163163
byte[] atqaBytes = nfca.getAtqa();

0 commit comments

Comments
 (0)