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/588b8a9a-2ae6-48b3-884f-e70700192e62n%40googlegroups.com.
