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 134831 - NullPointerException at org.netbeans.modules.swingapp.ProjectCustomizerProvider.createComponent
Summary: NullPointerException at org.netbeans.modules.swingapp.ProjectCustomizerProvid...
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: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-12 02:41 UTC by beatlelife26
Modified: 2008-06-02 12:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 1554


Attachments
stacktrace (5.12 KB, text/plain)
2008-05-12 02:41 UTC, beatlelife26
Details

Note You need to log in before you can comment on or make changes to this bug.
Description beatlelife26 2008-05-12 02:41:45 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06
OS: Windows Vista, 6.0, x86

User Comments:
Comment 1 beatlelife26 2008-05-12 02:41:49 UTC
Created attachment 61232 [details]
stacktrace
Comment 2 Jana Maleckova 2008-05-13 09:21:03 UTC
StackTrace:
===========
java.lang.NullPointerException
        at org.netbeans.modules.swingapp.ProjectCustomizerProvider.createComponent(ProjectCustomizerProvider.java:111)
        at org.netbeans.spi.project.ui.support.ProjectCustomizer$DelegateCategoryProvider.create(ProjectCustomizer.java:517)
        at org.netbeans.modules.project.uiapi.CustomizerPane.setCategory(CustomizerPane.java:240)
        at org.netbeans.modules.project.uiapi.CustomizerPane.access$100(CustomizerPane.java:65)
Comment 3 Jan Stola 2008-05-29 15:15:52 UTC
The attached exception shows that application's resource map cannot be constructed. Hence, I was able to reproduce the 
exception when I deleted the application class, but this is quite unusual scenario. It is not clear what to do in this 
case - the project based on Swing Application Framework requires an application class. Of course, we shouldn't throw 
exceptions at least.

Modified files: http://hg.netbeans.org/main?cmd=changeset;node=2fce86e1f106
Comment 4 Jana Maleckova 2008-06-02 09:52:32 UTC
small correction:
Modified Files: http://hg.netbeans.org/main/rev/aa1c9b793db7
Comment 5 Jana Maleckova 2008-06-02 12:24:54 UTC
verified on build Build 20080602042246
In case when application class is deleted, text fields on property panel "Swing Application Framework specific
properties" are set as read only.
and no NPE is thrown