Multibutton added to form causes null pointer

23 views
Skip to first unread message

nickk...@gmail.com

unread,
Aug 10, 2016, 12:44:18 AM8/10/16
to CodenameOne Discussions
In the UI designer I've added a multi button to a form, if I show that form I get a null pointer. Stepping through shows this error:

Component not found use UIBuilder.registerCustomComponent(MultiButton, class);

Being thrown from UIBuilder line 413.

As far as I know libraries and plugins are up to date and version is set to latest.

Shai Almog

unread,
Aug 10, 2016, 1:55:57 AM8/10/16
to CodenameOne Discussions, nickk...@gmail.com
It looks like the statemachinebase isn't generated for some reason when you saved the resource?
Can you think of a reason this would happen on your machine?

nickk...@gmail.com

unread,
Aug 10, 2016, 8:01:32 PM8/10/16
to CodenameOne Discussions, nickk...@gmail.com
userClass, baseClass, package, mainForm, and guiResource properties were all missing from the codenameone_settings.properties file. I put them back but for some reason opening the properties panel in NetBeans deleted them again.

As this project has always been a GUI project from the very start (years ago) I don't know what caused these properties to go missing.

After a few saves and putting the back a couple of times its working now and no longer getting deleted out of the properties file.

Shai Almog

unread,
Aug 11, 2016, 1:11:17 AM8/11/16
to CodenameOne Discussions, nickk...@gmail.com
Odd. Is it possible someone tried to migrate the project to the new GUI builder?
Reply all
Reply to author
Forward
0 new messages