Good morning.
I use @DonManfred lib "FirebaseAuthEx - Extends FirebaseAuth functionality".
When i run this code from a service:
i get this error:
when i run it from Activity module, everything works fine.
Any ideas?
I use @DonManfred lib "FirebaseAuthEx - Extends FirebaseAuth functionality".
When i run this code from a service:
B4X:
authX.createUserWithEmailAndPassword(user_email,user_password)
B4X:
Error occurred on line: 163 (Starter)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference
at de.donmanfred.FirebaseAuthExWrapper.createUserWithEmailAndPassword(FirebaseAuthExWrapper.java:142)
at com.dreamon.seeida.starter._registercheck_result(starter.java:425)
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)
** Activity (login) Pause, UserClosed = true **
** Service (starter) Destroy **
when i run it from Activity module, everything works fine.
Any ideas?
Last edited: