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 110116 - ACTIONS: NPE during attempt to edit quit action
Summary: ACTIONS: NPE during attempt to edit quit action
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-18 10:56 UTC by Jana Maleckova
Modified: 2007-08-06 10:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
110116 (2.68 KB, text/plain)
2007-07-18 10:59 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-07-18 10:56:14 UTC
Product Version: NetBeans IDE Dev (Build 070718) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
Do edit on quit action in Application Action editor => NPE is thrown

StackTrace:
============
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
	at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:72)
	at org.netbeans.modules.swingapp.AppFrameworkSupport.getApplicationClassName(AppFrameworkSupport.java:148)
	at org.netbeans.modules.swingapp.AppFrameworkSupport.isFrameworkEnabledProject(AppFrameworkSupport.java:77)
	at org.netbeans.modules.swingapp.ActionEditor.isAppFramework(ActionEditor.java:511)
	at org.netbeans.modules.swingapp.ActionEditor.setValue(ActionEditor.java:239)
Comment 1 Jana Maleckova 2007-07-18 10:59:06 UTC
Created attachment 45293 [details]
110116
Comment 2 Tomas Pavek 2007-07-18 12:46:27 UTC
Editing the 'quit' action is questionable, since it is built in, it can't be edited. But we could perhaps be able to
change its resources (text, icon, tooltip, etc).
Comment 3 Joshua Marinacci 2007-08-03 21:50:35 UTC
I fixed this when I fixed 110111.  Now the application's source file will be used when the action's source file is null, such as with the 'quit' action.
Comment 4 Jana Maleckova 2007-08-06 10:19:12 UTC
verified on

Product Version: NetBeans IDE Dev (Build 070806) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b03 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)