From ae3498e103bd4b928f2f678135643060ef457786 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Wed, 21 Aug 2019 13:56:16 -0500 Subject: [PATCH] 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. --- .../bitsybitshareswallet/fragments/SendTransactionFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt index 1e7b174..acaf8d9 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SendTransactionFragment.kt @@ -153,6 +153,8 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand wifKey = CryptoUtils.decrypt(it, encryptedWIF) } catch (e: AEADBadTagException) { Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message) + } catch (e: IllegalStateException) { + Crashlytics.logException(e) } } })