Crash on iOS with Picker

橙三吉。 提交于 2019-12-08 03:34:55

问题


I have a problem with my application on iOS only (iPad 9.7" 11.3.1) when I launch a new Form with a Picker in it (created with GUI Builder). Thanks to a Mac I was able to see some logs :

java.lang.NullPointerException
    at com_codename1_impl_ios_IOSImplementation.instanceofObjArray:7464
    at com_codename1_io_Util.instanceofObjArray:470
    at com_codename1_ui_spinner_Picker.setType:781
    at fr_aaa_bbb_Saisie.initGuiBuilderComponents:462
    at fr_aaa_bbb_Saisie._INIT__:71
    at fr_aaa_bbb_Saisie._INIT__:67
    at fr_aaa_bbb_Photo.onContinueActionEvent:419
    ... 

Code at line 462 : gui_Picker.setType(4);

Can't see why the is a NullPointerException at this moment because gui_Picker is used at the line just before .setType().

Thanks for the help.


回答1:


Thanks, this is a bug in picker fixed here. It will be available in the next Friday update.

As a workaround until then you can use setStrings() before (or even instead of) invoking setType().



来源:https://stackoverflow.com/questions/51714545/crash-on-ios-with-picker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!