Hello my friends,
I use @DonManfred library to authenticate users. Everything was working perfect till today, when i updated recommended sdk updates. Now it throws this error:
Code that throws this error:
If i put a breakpoint at this line of code "Starter.token=fm.Token" it says this: "Error: Cannot run method from watch expression." But even if i put this code to Activity_Start throws again same error. I think that by sdk update something changed and this lib corrupted.
Thank you for your time.
I use @DonManfred library to authenticate users. Everything was working perfect till today, when i updated recommended sdk updates. Now it throws this error:
B4X:
User exists=1
Error occurred on line: 431 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getToken()' on a null object reference
at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.getToken(FirebaseNotificationsService.java:122)
at com.dreamon.seeida.main._userexists_result(main.java:3755)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:339)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Code that throws this error:
B4X:
Private fm As FirebaseMessaging
fm.Initialize("fm")
Starter.token=fm.Token
If i put a breakpoint at this line of code "Starter.token=fm.Token" it says this: "Error: Cannot run method from watch expression." But even if i put this code to Activity_Start throws again same error. I think that by sdk update something changed and this lib corrupted.
Thank you for your time.