handle IllegalArgumentException during autoOpenSecureChannel()

This commit is contained in:
Dmitry Novotochinov 2019-03-05 14:40:15 +03:00
parent e0448b0960
commit d7854a33bb
No known key found for this signature in database
GPG Key ID: 43D1DAF5AD39C927

View File

@ -231,7 +231,7 @@ public class SmartCard extends BroadcastReceiver implements CardListener {
cardInfo.putInt("pin-retry-counter", status.getPINRetryCount());
cardInfo.putInt("puk-retry-counter", status.getPUKRetryCount());
} catch (IOException e) {
} catch (IOException | IllegalArgumentException e) {
Log.i(TAG, "autoOpenSecureChannel failed: " + e.getMessage());
}
}