Error in updating user

using backendless 6.1.2

trying to do
Backendless.UserService.update(updateUser, new AsyncCallback() { …

getting:
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Map com.backendless.BackendlessUser.getProperties()’ on a null object reference
at com.backendless.UserService$2.handleResponse(UserService.java:163)
at com.backendless.UserService$2.handleResponse(UserService.java:158)
at com.backendless.async.message.AsyncMessage$ResponseHandler.handle(AsyncMessage.java:64)
at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41)
at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

app id: 066298BB-F6FE-A1C0-FF44-76C4C0C15700

I figure it out, again, on each time, need to the Backendless.initApp

why is that? why I can’t do it one time when the application is uploaded

Hi @zeev-mindali

Please show how do you initialize the Backendless and provide the full code for update method.

I would also recommend to initialize the Backenless when app starts. Create custom class for your Android application and call Backendless.initApp inside its onCreate method.

Best Regards,
Maksym