GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2014-Jun-05

Title: java.lang.NullPointerException
Post by: MrPlow on 2014-Jun-05
Hi Guys

Any ideas what might cause this in GLB for Android app...

crash states..
java.lang.NullPointerException
in org.libsdl.app.SDLActivity.onCreate

Thks!
Title: Re: java.lang.NullPointerException
Post by: spacefractal on 2014-Jun-05
Im need full log, its crashed somewhere in the OnCreate(). But without full log, no idea why.
Title: Re: java.lang.NullPointerException
Post by: erico on 2014-Jun-05
Have you searched the forum? I think I have seen that or similar before.

edit: maybe this helps? http://www.glbasic.com/forum/index.php?topic=6912.0
Title: Re: java.lang.NullPointerException
Post by: MrPlow on 2014-Jun-05
Hi SF,

Is this what u need?

Its a Google Play report so it didnt happen on my device...just a downloader / user.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gazzapper.galaxystorm/org.libsdl.app.SDLActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.libsdl.app.SDLActivity.onCreate(SDLActivity.java:323)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
... 11 more
Title: Re: java.lang.NullPointerException
Post by: MrTAToad on 2014-Jun-05
Sounds like a surface or something called AbsoluteLayout couldn't be created - by the looks of the java code, there isn't a test to see if either is NULL (although Java may be using an exception to process the message).
Title: Re: java.lang.NullPointerException
Post by: spacefractal on 2014-Jun-05
Can you see which device and android its was on. Its can been property a missing resource of some sort. Its impossible to supports all devices.

im do cant see which line its was happens, because your AE version is different than mine. So you should attachement the version of SDLActivity.Java you used for the game.
Title: Re: java.lang.NullPointerException
Post by: MrPlow on 2014-Jun-05
Hi

The device it says is
X500_USA_General (X500)

Android version 2.3.3 - 2.3.7

So probably fairly isolated crash?!

Title: Re: java.lang.NullPointerException
Post by: spacefractal on 2014-Jun-05
its can been happens. Im do cant see which line its was crashed on, due different between your and mine AE.