- Code: Select all
var fv_sidenavmenu_media = [
{
// Contacts
id: 1,
text: "i18n:cuvis.navitem.text.lc.contacts",
styleClass: "svy-sidenav",
iconStyleClass: "fa fa-address-card-o",
onAction: "",
data: {formName:'', listName:'', tabPanel:'', updateMenu:'true'},
menuItems: [{
id: 1.1,
text: "i18n:cuvis.navitem.text.lc.customer",
data: {formName:'lst_contacts'}
}, {
id: 1.2,
text: "i18n:cuvis.navitem.text.lc.other",
data: {formName:'lst_contacts'}
}, {
id: 1.3,
text: "i18n:cuvis.navitem.text.lc.contact_persons",
data: {formName:'lst_contacts'}
}],
enabled: true
}, {
isDivider: true, styleClass:'svy-sidenav-divider'
}, {
// Calendar
id: 2,
text: "i18n:cuvis.navitem.text.lc.schedule",
styleClass: "svy-sidenav",
iconStyleClass: "fa fa-calendar",
onAction: "",
data: {formName:'dtl_calendar', updateMenu:'true'},
enabled: true
}, ...
At this point of the onMenuItemSelected function
- Code: Select all
* @param {Object} menuItemId
...
var _item = elements.sidenav_1.getMenuItem(menuItemId);
I get the error:
- Code: Select all
"<error printing evaluated value in debugger:
value class: com.servoy.j2db.server.ngclient.component.RhinoMapOrArrayWrapper
value.toString() is: RhinoMapOrArrayWrapper: #CAM# {onAction=, data={updateMenu=true, formName=, listName=, tabPanel=}, menuItems=#CAL# [#CAM# {data={formName=lst_contacts}, id=1.1, text=com.servoy.j2db.server.ngclient.property.types.BasicI18NTagStringTypeSabloValue@869fb969}, #CAM# {data={formName=lst_others}, id=1.2, text=com.servoy.j2db.server.ngclient.property.types.BasicI18NTagStringTypeSabloValue@601532d4}, #CAM# {data={formName=lst_contact_persons}, id=1.3, text=com.servoy.j2db.server.ngclient.property.types.BasicI18NTagStringTypeSabloValue@6a162246}], id=1.0, text=com.servoy.j2db.server.ngclient.property.types.BasicI18NTagStringTypeSabloValue@21114965, styleClass=svy-sidenav, iconStyleClass=fa fa-address-card-o, enabled=true}
Exception: null
java.lang.NullPointerException
at com.servoy.j2db.server.ngclient.component.RhinoMapOrArrayWrapper.getIds(RhinoMapOrArrayWrapper.java:322)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger.createChilds(DBGPDebugger.java:425)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger.printProperty(DBGPDebugger.java:290)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger.printProperty(DBGPDebugger.java:214)
at org.eclipse.dltk.rhino.dbgp.ContextGetCommand.parseAndExecute(ContextGetCommand.java:70)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger.executeCommand(DBGPDebugger.java:571)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger.access$0(DBGPDebugger.java:535)
at org.eclipse.dltk.rhino.dbgp.DBGPDebugger$2.run(DBGPDebugger.java:513)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
>"
What goes wrong? Does anybody can help?
Servoy Version: 2019.3.1.3413
Java Version 8 Update 211