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 78872 - NPE on attempt to rename project or any upper level node in Design Center with F2
Summary: NPE on attempt to rename project or any upper level node in Design Center wit...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-22 07:10 UTC by bugbridge
Modified: 2007-10-26 00:06 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 bugbridge 2006-06-22 07:10:17 UTC
steps:
1. open design center
2. create new project in design center
3. select new project in tree
4. press F2
NPE is thrown:
java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTreeUI.startEditing(BasicTreeUI.java:2037)
	at javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(BasicTreeUI.java:602)
	at javax.swing.JTree.startEditingAtPath(JTree.java:1928)
	at javax.swing.plaf.basic.BasicTreeUI$Actions.startEditing(BasicTreeUI.java:4260)
	at
javax.swing.plaf.basic.BasicTreeUI$Actions.actionPerformed(BasicTreeUI.java:4069)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
	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)

Evaluation:
reproducible with coke 060618
Comment 1 Peter Lam 2007-03-20 23:13:47 UTC
low use case not currently impacting our installed user base.
Comment 2 Yang Su 2007-07-20 22:47:51 UTC
put temp fix to address exception, the design pattern tree view will be re-written later.
Comment 3 Sherry Zhou 2007-09-14 22:49:11 UTC
Can not verify this bug until 78873 is fixed
Comment 4 Peter Lam 2007-10-26 00:06:44 UTC
verified in the latest trunk build 20071025193521.
This issue is independent of issue 78873. The problem in this issue is that once F2 is pressed, NPE occurred. This is
now fixed and NPE no longer occurred but F2 action will not enable the editor mode for rename. So mark it as verified.