GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2014-Oct-28

Title: Nullpointer exceptions
Post by: MrPlow on 2014-Oct-28
I am getting a lot of additional nullpointer crashes with my newer compiles.

java.lang.NullPointerException

Does anyone know what I should look for or avoid in my projects to reduce these?

Could it be the java sdk version or GLB 12.308 bug?
Title: Re: Nullpointer exceptions
Post by: spacefractal on 2014-Oct-28
I'm need the full log from logcat, due its seems Java based issue.
Title: Re: Nullpointer exceptions
Post by: bigsofty on 2014-Oct-28
Have you tested on other platforms, to make sure that this an Android specific issue?
Title: Re: Nullpointer exceptions
Post by: spacefractal on 2014-Oct-29
It's java, only android here uses it, but can do nothing without full logcat so I'm can we where it's crashed.
Title: Re: Nullpointer exceptions
Post by: bigsofty on 2014-Oct-29
Yes I realise that the initial post refers to a Java compile, as it produces a Java error but this is what Android would report if you tried to use an unintialised sprite(say you misspelled the sprites image file name) for example. Running the same code on a desktop could produce a more meaningful error in debug but only if it's not a platform specific error of course.

No harm in posting the logcat of course though. ;)

Stubs are my last resort to finding a sneaky error usually.
Title: Re: Nullpointer exceptions
Post by: spacefractal on 2014-Oct-29
sprites handing is c++ thing, so pretty sure its can been a bug in Android Extras somewhere (there was recently those kind of error im fixed in StoreKit). C++ relative errors is for me impossible to fix and here you will get a signal error instead, while Java errors, you often get a error which line the nullpointer have been, and hence its will been easier to fix when im known while line and function its was.