Skip to content
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

Saving User #614

Closed
pastordee opened this issue Apr 26, 2021 · 2 comments
Closed

Saving User #614

pastordee opened this issue Apr 26, 2021 · 2 comments

Comments

@pastordee
Copy link
Contributor

I'm using version 3.0 and Every time I try to save data to users and other classes I get this error.

the update method doesn't work either

[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'int'
#0 _ParseResponseBuilder._handleSuccess (package:parse_server_sdk/src/objects/response/parse_response_builder.dart:76:35)
#1 _ParseResponseBuilder.handleResponse (package:parse_server_sdk/src/objects/response/parse_response_builder.dart:29:14)
#2 handleResponse (package:parse_server_sdk/src/objects/response/parse_response_utils.dart:8:31)
#3 batchRequest (package:parse_server_sdk/src/utils/parse_utils.dart:82:12)

#4 ParseObject._saveChildren (package:parse_server_sdk/src/objects/parse_object.dart:172:40)

#5 ParseObject.save (package:parse_server_sdk/src/objects/parse_object.dart:99:44)

#6 ParseUser.save (package:parse_server_sdk/src/objects/parse_user.dart:390:38)

@chuonglam
Copy link

That's because v3.0 now supports null-safety checking. You can try to check nullable of the data before set it to the ParseUser object.

@RodrigoSMarques
Copy link
Contributor

Closed. No activity in the last 14 days.
If necessary open again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants