mogol / flutter_secure_storage

A Flutter plugin to store data in secure storage
https://pub.dartlang.org/packages/flutter_secure_storage
BSD 3-Clause "New" or "Revised" License
1.13k stars 374 forks source link

StandardMethodCodec.decodeEnvelope #428

Closed vineetpandit90 closed 2 months ago

vineetpandit90 commented 2 years ago

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(Exception encountered, write, java.lang.NullPointerException: Attempt to invoke interface method 'byte[] com.it_nomads.fluttersecurestorage.e.c.a(byte[])' on a null object reference at com.it_nomads.fluttersecurestorage.d.x(FlutterSecureStoragePlugin.java:3) at com.it_nomads.fluttersecurestorage.d.d(FlutterSecureStoragePlugin.java:1) at com.it_nomads.fluttersecurestorage.d$b.run(FlutterSecureStoragePlugin.java:32) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) , null). Error thrown null. at StandardMethodCodec.decodeEnvelope(message_codecs.dart:607) at MethodChannel._invokeMethod(platform_channel.dart:177)

acoutts commented 2 years ago

I downgraded to 4.2.1 and disabling encryptedSharedPreferences fixed this for me.

rmasarovic commented 2 years ago

similar here version 5.1.0

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(Exception encountered, read, java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.content.SharedPreferences.contains(java.lang.String)' on a null object reference at g.f.a.d.b(Unknown Source:5) at g.f.a.e$b.run(Unknown Source:221) at android.os.Handler.handleCallback(Handler.java:888) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:213) at android.os.HandlerThread.run(HandlerThread.java:67) , null). Error thrown null. at StandardMethodCodec.decodeEnvelope(message_codecs.dart:607) at MethodChannel._invokeMethod(platform_channel.dart:167) at SecureStorage.getAccessToken(secure_storage_provider.dart:44)

felipecastrosales commented 1 year ago

News about it?

vineetpandit90 commented 1 year ago

Not yet, we will try a new version and let you guys know about this.

On Wed, Dec 7, 2022 at 11:23 PM Felipe Sales @.***> wrote:

News about it?

— Reply to this email directly, view it on GitHub https://github.com/mogol/flutter_secure_storage/issues/428#issuecomment-1341348446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFROGRHFETV5AKSV6WEOPXDWMDFJJANCNFSM5533RRBQ . You are receiving this because you authored the thread.Message ID: @.***>

felipecastrosales commented 1 year ago

@vineetpandit90 probably resolved in ⬇️

tologonkudaiberdiuulu commented 1 year ago

@felipecastrosales no, it's not fixed yet. #489 not solved this problem

tologonkudaiberdiuulu commented 1 year ago

Any progress on that?

MortadhaFadhlaoui commented 5 months ago

+1

juliansteenbakker commented 2 months ago

I am closing all older issues. If this issue still exists in the latest version, please let me know.