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 105038 - [ACTIONS] - NPEs for "Create Action" dialog
Summary: [ACTIONS] - NPEs for "Create Action" dialog
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 15:29 UTC by Peter Pis
Modified: 2007-06-11 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (5.75 KB, text/plain)
2007-05-29 15:29 UTC, Peter Pis
Details
NPE for icons (5.07 KB, text/plain)
2007-05-29 15:37 UTC, Peter Pis
Details
NPE for icons (5.07 KB, application/octet-stream)
2007-05-29 15:37 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2007-05-29 15:29:14 UTC
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)
Comment 1 Peter Pis 2007-05-29 15:29:41 UTC
Created attachment 42902 [details]
NPE
Comment 2 Peter Pis 2007-05-29 15:36:31 UTC
If "icons" are touched in this dialog then it also throws NPE.
Comment 3 Peter Pis 2007-05-29 15:37:30 UTC
Created attachment 42903 [details]
NPE for icons
Comment 4 Peter Pis 2007-05-29 15:37:33 UTC
Created attachment 42904 [details]
NPE for icons
Comment 5 Joshua Marinacci 2007-05-31 21:05:32 UTC
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.
Comment 6 Peter Pis 2007-06-11 16:00:31 UTC
Verified.