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

Summary: NPE when changing property of freeform project
Product: projects Reporter: Jiri Prox <jiriprox>
Component: Ant FreeformAssignee: Milos Kleint <mkleint>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 82041    
Attachments: NPE
Possible fix.

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