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 119615 - NPE after ENTER key is pressed with selected tree node
Summary: NPE after ENTER key is pressed with selected tree node
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2007-10-22 09:21 UTC by Jiri Vagner
Modified: 2008-12-22 12:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception.txt (1.88 KB, text/plain)
2007-10-22 09:24 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-10-22 09:21:54 UTC
NPE is thrown after ENTER key is pressed with selected tree node in Project, Files or Services tree.

Steps to reproduce:
 - start IDE
 - go to Services tab and select for example "Databases" node
 - press ENTER key

java.lang.NullPointerException
	at org.openide.explorer.view.TreeView$PopupSupport.actionPerformed(TreeView.java:1470)
	at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:3236)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2807)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
	at java.awt.Component.processEvent(Component.java:5294)

Product Version: NetBeans IDE Dev (Build 200710211200)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Comment 1 Jiri Vagner 2007-10-22 09:24:50 UTC
Created attachment 51389 [details]
exception.txt
Comment 2 Petr Nejedly 2007-10-22 15:00:45 UTC
Easy to reproduce, simple to fix though mostly harmless.
I will fix it for 6.0.
Comment 3 Petr Nejedly 2007-10-22 15:37:08 UTC
Fixed. I accidentally removed a null check in v1.29
openide/explorer/src/org/openide/explorer/view/TreeView.java,v1.31
Comment 4 Jiri Vagner 2007-10-26 09:35:13 UTC
Verified

Product Version: NetBeans IDE Dev (Build 200710241200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)