I have this type declaration in Process_Global:
When I try to fill some of the type members with values, in Start_Activity or in any other sub , as in the following:
or the following in a Timer after being initialized and enabled:
I will get the following error:
(NullPointerException) java.lang.NullPointerException
Any help to fix it?
B4X:
Type tempbox(X(4) As Int,Y(4) As Int ,r As Int, g As Int, b As Int, rot As Int)
Dim Box(8) As tempbox
B4X:
Box(1).rot = 4
Box(2).rot = 1
For i = 3 To 6
Box(i).rot = 4
Next
Box(7).rot = 2
B4X:
For i = 1 To 4
Box(rnum).Y(i) = Box(rnum).Y(i) + boxwidth
Next
(NullPointerException) java.lang.NullPointerException
Any help to fix it?