Avoid crash in SendTransactionFragment
- Avoided crash in SendTransactionFragment when trying to decrypt the WIF, but logged the exception to Crashlytics in case we find out this problem persists.
This commit is contained in:
parent
54c8bbce19
commit
ae3498e103
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand
|
||||||
wifKey = CryptoUtils.decrypt(it, encryptedWIF)
|
wifKey = CryptoUtils.decrypt(it, encryptedWIF)
|
||||||
} catch (e: AEADBadTagException) {
|
} catch (e: AEADBadTagException) {
|
||||||
Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message)
|
Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message)
|
||||||
|
} catch (e: IllegalStateException) {
|
||||||
|
Crashlytics.logException(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue