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.
NetBeans IDE Dev (Build 200705281800) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b101 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252 Steps: 1. Create new J2SE project. 2. Invoke "Window | Other | Application Actions". 3. Push "New Action" button. 4. In "Create New Action" dialog push "Choose Class". NPE is thrown. java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject) at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:72) at org.netbeans.modules.form.editors.ClassPathFileChooser.createPackageRootNodes(ClassPathFileChooser.java:422) at org.netbeans.modules.form.editors.ClassPathFileChooser.getRootNode(ClassPathFileChooser.java:412) at org.netbeans.modules.form.editors.ClassPathFileChooser.<init>(ClassPathFileChooser.java:108) at org.netbeans.modules.swingapp.ActionPropertyEditorPanel.targetClassButtonActionPerformed(ActionPropertyEditorPanel.java:710) at org.netbeans.modules.swingapp.ActionPropertyEditorPanel.access$700(ActionPropertyEditorPanel.java:61) at org.netbeans.modules.swingapp.ActionPropertyEditorPanel$5.actionPerformed(ActionPropertyEditorPanel.java:568) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038)
Created attachment 42902 [details] NPE
If "icons" are touched in this dialog then it also throws NPE.
Created attachment 42903 [details] NPE for icons
Created attachment 42904 [details] NPE for icons
This bug is caused by using the New Action button in a non-Swing App Framework project. Now the New Action button in the Application Actions table will be disabled by default and will only be enabled when a Swing App framework project is selected. This will prevent users from accidentally creating a new action in non-framework apps. As an extra precaution, the new action button will refuse to do anything if the user manages to some how press it when there is no framework app project selected.
Verified.