Sorry, you are right. One of the elements was null. On Saturday, January 16, 2021 at 1:38:42 AM UTC-5 Shai Almog wrote:
> Hi, > do you have a stack trace? > On which OS is this happening? Does it happen on the simulator? > Is it possible one of the elements in the array is null? > > On Friday, January 15, 2021 at 7:31:12 PM UTC+2 [email protected] wrote: > >> Hi, >> >> I noticed when I use *com.codename1.ui.spinner.Picker *for type >> *PICKER_TYPE_STRINGS, *if I set Strings as not a hardcoded Strings but >> as String[ ], I get >> *java.lang.NullPointerException *while spinning the Picker. >> I get it only if I also do setSelectedString(). If there is a >> setSelectedStringIndex(), no error occurs. >> >> I wondered, why would it happen? >> > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/989ca6f0-866b-4ffe-941f-95bb6aa07a50n%40googlegroups.com.
