flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

Flutter web exception: Uncaught Error: Null check operator used on a null value (getEncryptionKey)

Open dupuisdavid opened this issue 1 year ago • 2 comments

Hello.

With my Flutter web app hosted, I get this error with flutter_secure_storage:

Uncaught Error: Null check operator used on a null value at flutter_secure_storage_web.dart:111:16 at _wrapJsFunctionForAsync_closure.$protected (async_patch.dart:311:19) at _wrapJsFunctionForAsync_closure.call$2 (async_patch.dart:336:23) at Object._asyncStartSync (async_patch.dart:241:3) at FlutterSecureStorageWeb._getEncryptionKey$body$FlutterSecureStorageWeb (flutter_secure_storage_web.dart:98:25) at FlutterSecureStorageWeb._getEncryptionKey$2 (flutter_secure_storage_web.dart:98:25) at flutter_secure_storage_web.dart:137:33 at _wrapJsFunctionForAsync_closure.$protected (async_patch.dart:311:19) at _wrapJsFunctionForAsync_closure.call$2 (async_patch.dart:336:23) at Object._asyncStartSync (async_patch.dart:241:3)

It is probably important information but there is no certificate on the sub domain of my app. I don't have any problem with the same build on another server but with an SSL certificate on it (that's the only difference I can notice).

Thanks for help.

dupuisdavid avatar Jan 16 '25 18:01 dupuisdavid

Hi, which version are you using?

juliansteenbakker avatar Jan 26 '25 18:01 juliansteenbakker

⚠️ 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 Mar 28 '25 02:03 github-actions[bot]

⚠️ 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]