When upgrading to 7.9 I click the "Diagnostics" link of a device created using my module I get a null pointer exception despite this working in 7.7.
Comparing my module to the Modbus SDK example I can't see what is missing. As far as I can tell, the xyzDriverType that extends DriverType has a getLinks()
function which simply needs to include new DiagnosticsLink()
as one of the List items returned.
I believe the DiagnosticsLink object is entirely handled in code outside my control, and not referencing anything that I should be creating.
Is my understanding of the DiagnosticsLink object being 'contained' wrong? And if so, could you please point me to the resources I need to maintain in order for the DiagnosticsLink to function correctly?
Thanks in advance
Null Pointer Error encountered when clicking the "Diagnostics" link:
org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at [ConfigPanelNavLink [Component id = link]] on component [ConfigPanelNavLink [Component id = link]] threw an exception
at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240)
[... most frames omitted]
Caused by: java.lang.NullPointerException: null
at com.inductiveautomation.xopc.driver.util.diagnostics.DiagnosticsPage.getMenuLocation(DiagnosticsPage.java:77)
at com.inductiveautomation.ignition.gateway.web.pages.Config.setConfigPanel(Config.java:180)
at com.inductiveautomation.ignition.gateway.web.components.ConfigPanelNavLink.onClick(ConfigPanelNavLink.java:46)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:189)
[see attached for a more verbose log]
wrapper.log (4.1 KB)