This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
*Open Files window *Select some Java file *Right click on file and select "Properties" item *In appeared dialog pres "F1" key Stack trace: #--------------------------------------------------------------------------------------------# java.lang.NullPointerException at org.netbeans.modules.javahelp.HelpAction.findHelpCtx(HelpAction.java:125) at org.netbeans.modules.javahelp.HelpAction.actionPerformed(HelpAction.java:163) at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1007) at javax.swing.JComponent.processKeyBindings(JComponent.java:2895) at javax.swing.JComponent.processKeyEvent(JComponent.java:2812) at org.openide.explorer.propertysheet.BaseTable.processKeyEvent(BaseTable.java:818) at java.awt.Component.processEvent(Component.java:5818) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661) at java.awt.Component.dispatchEventImpl(Component.java:4285) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) #--------------------------------------------------------------------------------------------#
reproducible, thanks for your report
A cause of the NPE is the following statement providing logging: Installer.log.fine(help.toString() + " from " + focused); It should be changed to: Installer.log.fine("HelpCtx " + help + " from " + focused);
Fixed http://hg.netbeans.org/main/rev/bd546ec338b4
Product Version: NetBeans IDE Dev (Build 200907130200) Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Still reproducible in 6.7 and latest dev build
Sorry, it is my fault. Provided change is incorrect. The "... + help.toString() ..." has been again used instead of "... + help".
Changeset: 708fd6c39cd7 Author: Victor G. Vasilyev <vvg@netbeans.org> Date: 2009-12-11 17:41 Message: Bug #161652 - PE is thrown when user tries to call context help for properties dialog Avoiding of the NPE in the log message.
Integrated into 'main-golden', will be available in build *200912111937* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/708fd6c39cd7 User: Victor G. Vasilyev <vvg@netbeans.org> Log: Bug #161652 - PE is thrown when user tries to call context help for properties dialog Avoiding of the NPE in the log message.
*** Bug 180674 has been marked as a duplicate of this bug. ***