java.lang.NullPointerException with getNavUtil()

I need to close a window from within a module, so as described in the api I run this inside of my module’s client hook to get to the navUtilites

VisionClientInterface vision = (VisionClientInterface) context.getModule(VisionClientInterface.VISION_MODULE_ID); NavUtilities nav = vision.getNavUtil();
Yet a null exception is thrown on the getNavUtil() call. :scratch:

[quote]ERROR [ClientContextImpl-Thread-4] Error starting up module “”
java.lang.NullPointerException
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl.getNavUtil(ClientContextImpl.java:297)
at some.module.ClientHook.startup(ClientHook.java:35)
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl$LoadedModule.startup(ClientContextImpl.java:211)
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl.startup(ClientContextImpl.java:247)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.startupApp(ClientPanel.java:584)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.startup(ClientPanel.java:360)
at com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook.startup(ClientLaunchHook.java:230)
at com.inductiveautomation.ignition.client.launch.steps.StartupStep$Starter.run(StartupStep.java:144)
at java.lang.Thread.run(Unknown Source)
[/quote]
Could someone point out what I’m doing wrong? Thanks!

You aren’t doing it wrong - this was a bug. It’ll be fixed in 7.5.1

Good to know, thanks!