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 82181 - NPE when changing property of freeform project
Summary: NPE when changing property of freeform project
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 82041
  Show dependency tree
 
Reported: 2006-08-08 16:03 UTC by Jiri Prox
Modified: 2006-10-23 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (1.97 KB, text/plain)
2006-08-08 16:05 UTC, Jiri Prox
Details
Possible fix. (1.00 KB, patch)
2006-08-09 10:03 UTC, Jan Lahoda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-08-08 16:03:54 UTC
NetBeans IDE Dev (Build 200608071800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b93
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

NPE is thrown when changing property of freeform project. The changes are not saved.

Steps to reproduce:
1) open freeform project
2) open project properties
3) make some modification
4) click OK to save changes

java.lang.NullPointerException
	at
org.netbeans.modules.ant.freeform.ui.ProjectCustomizer.save(ProjectCustomizer.java:86)
	at
org.netbeans.modules.ant.freeform.ui.ProjectCustomizerProvider$OptionListener.actionPerformed(ProjectCustomizerProvider.java:134)
Comment 1 Jiri Prox 2006-08-08 16:05:06 UTC
Created attachment 32656 [details]
NPE
Comment 2 Jiri Prox 2006-08-08 16:19:45 UTC
It's M2 show stopper
Comment 3 Jan Lahoda 2006-08-09 10:01:20 UTC
This is because the field ProjectCustomizer.panels is never initialized.
Probably  mistake in recent commit:
src/org/netbeans/modules/ant/freeform/ui/ProjectCustomizer.java:1.21->1.22

I will attach a possible fix (not very pretty, but should work, untested).
Comment 4 Jan Lahoda 2006-08-09 10:03:26 UTC
Created attachment 32688 [details]
Possible fix.
Comment 5 Milos Kleint 2006-08-09 10:38:07 UTC
fixed in trunk.
Comment 6 Jiri Prox 2006-08-10 15:13:50 UTC
verified