Android Question app crashes on launch

merlin2049er

Well-Known Member
Licensed User
Longtime User
B4X:
LogCat connected to: B4A-Bridge: samsung GT-N5110-
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:texting.app
** Activity (main) Resume **
PackageAdded: package:com.wunderkinder.wunderlistandroid
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:texting.app
maininitializeProcessGlobals (java line: 1329)
java.lang.RuntimeException: java.lang.NullPointerException
    at texting.app.main.initializeProcessGlobals(main.java:1329)
    at texting.app.main.afterFirstLayout(main.java:94)
    at texting.app.main.access$100(main.java:16)
    at texting.app.main$WaitForLayout.run(main.java:76)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5487)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
    at anywheresoftware.b4a.keywords.Common.getComponentIntent(Common.java:753)
    at anywheresoftware.b4a.objects.NotificationWrapper.SetInfo2(NotificationWrapper.java:141)
    at anywheresoftware.b4a.objects.NotificationWrapper.SetInfo(NotificationWrapper.java:121)
    at texting.app.timer._process_globals(timer.java:140)
    at texting.app.main.initializeProcessGlobals(main.java:1326)
    ... 12 more
** Activity (main) Resume **


Hmm, not sure what happened. I had my app working, now it crashes on launch.

I'm not sure what this package is -->PackageAdded: package:com.wunderkinder.wunderlistandroid
 
Last edited:

eps

Expert
Licensed User
Longtime User
java.lang.NullPointerException would seem to be the cause of the crash.

Are you able to compile this with debug and get it to tell you the B4A line that causes the error? otherwise a few log statements in there may well help track it down..
 
Upvote 0

merlin2049er

Well-Known Member
Licensed User
Longtime User
Oh, it might be the wifi library I'm using. MLwifi, maybe I should initialize that before checking to see if wifi is enabled.
That's a bit of code I recently put into the activity resume.
 
Upvote 0
Top