flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

Null check operator used on a null value

Open YawarOsman opened this issue 1 year ago • 5 comments

I have used the beta version of the package flutter_secure_storage_web: ^2.0.0-beta.1 and it works fine on localhost but when i host it on a locale network and try to access it through the ip address it shows this error:

Null check operator used on a null value

I just used write method to save the value:

  Future<void> setToken(String value) async {
    const storage = FlutterSecureStorage();
    await storage.write(key: 'token', value: value);
  }

YawarOsman avatar Jul 29 '24 08:07 YawarOsman

same to me.

flutter_secure_storage: ^9.2.2

seealex avatar Aug 20 '24 23:08 seealex

⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.

If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.

github-actions[bot] avatar Feb 10 '25 02:02 github-actions[bot]

❌ This issue has been closed because it remained inactive for 60 days after being marked as stale.

github-actions[bot] avatar Apr 11 '25 02:04 github-actions[bot]

Got the same issue. It works OK on Chrome and Firefox in Windows PC, but I got the error while using Chrome in an Android phone. In the same phone, when using Firefox, this issue does not happen but it also doesn't save anything.

Ri-car-do-1989 avatar May 23 '25 17:05 Ri-car-do-1989

Upon further research, I found @this. That was my problem, and running my app with HTTPS did solve the issue. I noticed that this information is present in the github page, but it is not present in the pub.dev package page. I'd suggest adding that info in the pub.dev page, as I think many people will look there for information (as I did).

Ri-car-do-1989 avatar May 23 '25 17:05 Ri-car-do-1989

⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.

If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.

github-actions[bot] avatar Jul 23 '25 03:07 github-actions[bot]

❌ This issue has been closed because it remained inactive for 60 days after being marked as stale.

github-actions[bot] avatar Sep 22 '25 02:09 github-actions[bot]