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.

Bug 161652 - PE is thrown when user tries to call context help for properties dialog
Summary: PE is thrown when user tries to call context help for properties dialog
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
: 180674 (view as bug list)
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-04-01 10:42 UTC by alex_pst
Modified: 2010-02-25 09:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex_pst 2009-04-01 10:42:30 UTC
*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)
#--------------------------------------------------------------------------------------------#
Comment 1 Jiri Prox 2009-04-06 09:33:02 UTC
reproducible, thanks for your report
Comment 2 Victor Vasilyev 2009-04-10 12:28:35 UTC
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);
Comment 3 Victor Vasilyev 2009-04-10 14:40:47 UTC
Fixed
http://hg.netbeans.org/main/rev/bd546ec338b4
Comment 4 pribyl 2009-07-13 12:36:31 UTC
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
Comment 5 Victor Vasilyev 2009-07-14 22:38:08 UTC
Sorry, it is my fault. Provided change is incorrect. The "... + help.toString() ..." has been again used instead of "...
+ help".
Comment 6 Victor Vasilyev 2009-12-11 07:43:46 UTC
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.
Comment 7 Quality Engineering 2009-12-11 20:53:35 UTC
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.
Comment 8 Victor Vasilyev 2010-02-25 09:25:31 UTC
*** Bug 180674 has been marked as a duplicate of this bug. ***