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.
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)
Created attachment 51389 [details] exception.txt
Easy to reproduce, simple to fix though mostly harmless. I will fix it for 6.0.
Fixed. I accidentally removed a null check in v1.29 openide/explorer/src/org/openide/explorer/view/TreeView.java,v1.31
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)