I'm having a problem with the NullPointerException after generating the iOS certification for the app I'm developing.
The problem occurs when I click the hamburger menu or in another area in the simulator. The problem occurs in the simulator and on iOS (haven't tested on Android).
The function which gives the exception is the addMaterialCommandToRightSideMenu(String name, char icon, final ActionListener ev). Here is the stack trace:
```java.lang.NullPointerException
at com.codename1.ui.Toolbar$5.actionPerformed(Toolbar.java:1345)
at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:349)
at com.codename1.ui.Form.pointerReleased(Form.java:3313)
at com.codename1.ui.Component.pointerReleased(Component.java:4419)
at com.codename1.ui.Display.handleEvent(Display.java:2071)
at com.codename1.ui.Display.edtLoopImpl(Display.java:1043)
at com.codename1.ui.Display.mainEDTLoop(Display.java:961)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
```