-
-
Notifications
You must be signed in to change notification settings - Fork 206
Calling ParseUser user = await ParseUser.currentUser(); results in error #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you post content of |
I have the same problem. |
No problem here. Can you post the startup code of Parse and the call where the error occurs? |
Here E/flutter (26268): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'getString' was called on null. |
I am not facing any issues.
|
Can this be closed? |
Im not sure why Im seeing this error. Any help would be appreciated
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'getString' was called on null.
Receiver: null
Tried calling: getString("flutter_parse_sdk_user")
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 ParseUser._getUserFromLocalStore (package:parse_server_sdk/src/objects/parse_user.dart:333:45)
#2 ParseUser.currentUser (package:parse_server_sdk/src/objects/parse_user.dart:119:20)
#3 UserRepository.getUser (package:la_c/models/user_repository.dart:34:27)
#4 new UserRepository (package:la_c/models/user_repository.dart:27:5)
#5 MyApp.build (package:la_c/main.dart:83:45)
#6 StatelessElement.build (package:flutter/src/widgets/framework.dart:4009:28)
#7 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3941:15)
#8 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#9 Compo<…>
The text was updated successfully, but these errors were encountered: