flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

2 exceptions preventing use

Open TheCarpetMerchant opened this issue 3 years ago • 3 comments

I am getting these two exceptions in production : java.lang.NullPointerException: Attempt to invoke interface method 'android.content.SharedPreferences$Editor android.content.SharedPreferences.edit()' on a null object reference java.lang.SecurityException: Could not decrypt value. decryption failed

When trying to read from the the storage. This is of course extremely problematic, as I'm read values during the app's startup. It's preventing users from using the app at all.

What's going wrong here ?

TheCarpetMerchant avatar Aug 29 '22 17:08 TheCarpetMerchant

Same thing here. NullPointerException Attempt to invoke interface method 'android.content.SharedPreferences$Editor android.content.SharedPreferences.edit()' on a null object reference

ostk0069 avatar Sep 07 '22 01:09 ostk0069

Possible duplicate of #380 ?

henry2man avatar Sep 07 '22 08:09 henry2man

I'll be trying out the latest workaround mentioned in #380 then.

TheCarpetMerchant avatar Sep 07 '22 15:09 TheCarpetMerchant