The First gives no error but if change the code to the last it gives a Java Error.
I am confused.
I am confused.
B4X:
'===========> this gives NO ERROR
For i=1 To All_lst_xRotateKnobs.Size-1
Private ToAdd As xRotateKnobsCollectionType_NEW = All_lst_xRotateKnobs.Get(i)
testlist.Add(ToAdd)
Next
ObjBytes = ser.ConvertObjectToBytes(testlist)
'===========>' this does give JAVA ERROR object should first be initialized (list)
ObjBytes = ser.ConvertObjectToBytes(All_lst_xRotateKnobs)