NullPointerException in array

后端 未结 2 882
长情又很酷
长情又很酷 2021-01-29 12:20

I keep getting a NullPointerException at (see below). Everything works fine in C#, but in android it breaks?

arrDBNumbers is full and code is supposed to run through an

2条回答
  •  暖寄归人
    2021-01-29 13:01

    Integer is a container for int, in your case you have lots of null objects. if you use int instead it will work as you expect.

提交回复
热议问题