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 86340 - REGRESSION: NPE on pressing F1 key press when palette window is on focus.
Summary: REGRESSION: NPE on pressing F1 key press when palette window is on focus.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 86622 (view as bug list)
Depends on:
Blocks: 80770 84661
  Show dependency tree
 
Reported: 2006-10-02 21:58 UTC by Girish Balachandran
Modified: 2008-12-22 17:48 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 Girish Balachandran 2006-10-02 21:58:45 UTC
* Take latest release55 build.
* Open netbeans form editor
*  Click on (just) the palette window (Do not click any palette items, just the
window)
* press F1 for context sensitive help and the following NPE occurs. This used to
work before (though it used to show generic help) untill the fix for  	84661
went in. I am opening this as P1 because this is an Exception that is shown to
the user. Evaluate and downgrade if needed. This bug will also affect  	80770.

java.lang.NullPointerException
	at org.netbeans.modules.palette.ui.PalettePanel.getHelpCtx(PalettePanel.java:393)
	at
org.netbeans.spi.palette.PaletteTopComponent.getHelpCtx(PaletteTopComponent.java:129)
	at org.openide.util.HelpCtx.findHelp(HelpCtx.java:172)
	at org.netbeans.modules.javahelp.HelpAction.findHelpCtx(HelpAction.java:102)
	at org.netbeans.modules.javahelp.HelpAction.actionPerformed(HelpAction.java:144)
	at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:880)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2809)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
	at java.awt.Component.processEvent(Component.java:5265)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
	at java.awt.Component.dispatchEventImpl(Component.java:3841)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Stanislav Aubrecht 2006-10-03 08:53:46 UTC
fixed in release55_dev

Checking in PalettePanel.java;
/cvs/core/palette/src/org/netbeans/modules/palette/ui/PalettePanel.java,v  <-- 
PalettePanel.java
new revision: 1.10.4.1.2.2.6.2; previous revision: 1.10.4.1.2.2.6.1
done


and in release55 branch

Checking in PalettePanel.java;
/cvs/core/palette/src/org/netbeans/modules/palette/ui/PalettePanel.java,v  <-- 
PalettePanel.java
new revision: 1.10.4.1.2.4; previous revision: 1.10.4.1.2.3
done
Comment 2 Stanislav Aubrecht 2006-10-06 08:24:23 UTC
*** Issue 86622 has been marked as a duplicate of this issue. ***