Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff0bdb0e authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix: fix NoSuchElementException

parent 76f5c2f4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class ReLoginWithOidcActivity : AppCompatActivity() {
        val eAccounts= accountManager.getAccountsByType(applicationContext.getString(R.string.eelo_account_type))
        val activity = this

        eAccounts.first { it.name == accountName }.run {
        eAccounts.firstOrNull() { it.name == accountName }?.run {
            Logger.log.info("Vincent: try to remove account: ${this.name} ") //todo remove this before merge
            accountManager.removeAccount(this, activity, callback, null)