diff --git a/android/src/main/kotlin/uk/co/moodio/msal_flutter/MsalFlutterPlugin.kt b/android/src/main/kotlin/uk/co/moodio/msal_flutter/MsalFlutterPlugin.kt index 1b71db9..8b1a7a3 100644 --- a/android/src/main/kotlin/uk/co/moodio/msal_flutter/MsalFlutterPlugin.kt +++ b/android/src/main/kotlin/uk/co/moodio/msal_flutter/MsalFlutterPlugin.kt @@ -154,7 +154,9 @@ class MsalFlutterPlugin: FlutterPlugin, MethodCallHandler, ActivityAware { //removes all logged in accounts private fun clearAccounts(){ while(msalApp.accounts.any()){ - msalApp.removeAccount(msalApp.accounts.first()) + try { + msalApp.removeAccount(msalApp.accounts.first()) + } catch (e: Exception) {} } }