From d39a8dca96bdea00ae24b5ba451cc9f9cd8a871d Mon Sep 17 00:00:00 2001 From: M3DZIK Date: Wed, 28 Feb 2024 23:33:53 +0100 Subject: [PATCH] Fix crashing when editing cipher by manual adding otp --- .../medzik/librepass/android/ui/screens/vault/OtpConfigure.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/OtpConfigure.kt b/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/OtpConfigure.kt index c3d3735b..58145b38 100644 --- a/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/OtpConfigure.kt +++ b/app/src/main/java/dev/medzik/librepass/android/ui/screens/vault/OtpConfigure.kt @@ -143,7 +143,7 @@ fun OtpConfigure( } } else { var beginParams: OTPParameters? = null - if (cipher != null) { + if (cipher?.loginData?.twoFactor != null) { beginParams = OTPParser.parse(cipher.loginData?.twoFactor) }