views:

18

answers:

1

I found a error that I dind't know about, Iam using a List, when Iam scrolling down to the bottom of the list it thows an error, why does this occur? Iamgeting the items from a service, and everything looks fine inte listview.

this is the error that it trows out. 09-25 16:58:01.865: ERROR/AndroidRuntime(609): FATAL EXCEPTION: main 09-25 16:58:01.865: ERROR/AndroidRuntime(609): java.lang.NullPointerException 09-25 16:58:01.865: ERROR/AndroidRuntime(609): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:355) 09-25 16:58:01.865: ERROR/AndroidRuntime(609): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323) .... ....

+1  A: 

It seems that one of your items in the ArrayAdapter is null - therefore you will get a NullPointerException if you scroll down to that item.

mreichelt