UserStore.signUp(username, password, client, new KinveyUserCallback<User>() {
@Override
public void onSuccess(User user) {
client.getActiveUser().set("email", email);
client.getActiveUser().update(new KinveyClientCallback() {
@Override
public void onSuccess(Object o) {
}
@Override
public void onFailure(Throwable throwable) {
Log.d("myTag", throwable.getMessage());
}
});
// callback.onSuccess(user);
}
@Override
public void onFailure(Throwable throwable) {
callback.onFailure(throwable);
}
});
Signing up a user is successful but updating the user fails with the Message
"currentUser must not be null".
After signup:
client.getActiveUser().getUsername() != null
client.isUserLoggedIn() = true
What does the error mean?
Best Answer
R
Robin Meier
said
over 2 years ago
Calling Client client = new Client.Builder(context).build(); more than once and in different classes will cause the error "currentUser must not be null".
1 Comment
R
Robin Meier
said
over 2 years ago
Answer
Calling Client client = new Client.Builder(context).build(); more than once and in different classes will cause the error "currentUser must not be null".
Robin Meier
Using Kinvey v3.0.4.
Signing up a user is successful but updating the user fails with the Message
"currentUser must not be null".
After signup:
client.getActiveUser().getUsername() != null
client.isUserLoggedIn() = true
What does the error mean?
Calling Client client = new Client.Builder(context).build(); more than once and in different classes will cause the error "currentUser must not be null".
Robin Meier
Calling Client client = new Client.Builder(context).build(); more than once and in different classes will cause the error "currentUser must not be null".
-
Can I add KinveyReferences and other custom Arrays to the User entity?
-
How can I use custom enums within my Entity?
-
Linking an image does not save with LinkedData
-
How can I get all records saved by the current user?
-
Why don't all users see the same data when querying?
-
Retrieving related file from datastore collection - continued
-
Problem implementing sign up / login
-
Can Android API be used for Java?
-
I'm not receiving push notifications
-
It is impossible to receive object according to the link
See all 258 topics