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:
Severiano Jaramillo 2019-08-21 13:56:16 -05:00
parent 54c8bbce19
commit ae3498e103

View file

@ -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)
} }
} }
}) })