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 47729 - [40cat] NPE when closing freeform project properties
Summary: [40cat] NPE when closing freeform project properties
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-08-23 18:32 UTC by gugrim
Modified: 2006-03-24 09:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gugrim 2004-08-23 18:32:56 UTC
[ BUILD # : 200408221800 ]
[ JDK VERSION : J2SE 1.4.2 ]

When closing the project properties for a freeform project I got the following exception:

java.lang.NullPointerException
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel.getAsFile(WebLocationsPanel.java:290)
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel.getWebModules(WebLocationsPanel.java:251)
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel.storeValues(WebLocationsPanel.java:337)
	at org.netbeans.modules.ant.freeform.ui.ProjectCustomizer.save(ProjectCustomizer.java:100)
	at org.netbeans.modules.ant.freeform.ui.ProjectCustomizerProvider$OptionListener.actionPerformed(ProjectCustomizerProvider.java:134)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 zikmund 2004-08-24 15:21:52 UTC
Reproducible case:
1) Have a freeform WebApp project
2) Project's Properties | Web Sources
3) [optional] do any changes and/or click anywhere in Customizer
4) Press OK
5) EXCEPTION
even without any changes/clicking in step 3
Comment 2 zikmund 2004-08-24 17:36:47 UTC
For most users it could seem that Project Properties don't work.
Raising to P2.
Comment 3 Jiri Kovalsky 2004-08-26 12:45:06 UTC
This is Q-build stopper, please fix this in QBE200408241800 branch too.
Comment 4 Martin Grebac 2004-08-26 14:42:36 UTC
will look at it
Comment 5 Martin Grebac 2004-08-26 19:06:52 UTC
Fixed in trunk. Karle please verify, I'll port it to QBE branch if it
works fine. Thanks.
Comment 6 zikmund 2004-08-27 08:48:09 UTC
Martine, the fix reintroduced the problem of issue 47386 in web
project's properties | Web Sources -- when you create WebProj with
Existing Ant Script where the project location is different than
sources location, there's ${project.dir}\webroot in the properties.

Could you please fix that too, thanks.
Comment 7 Martin Grebac 2004-08-27 12:27:17 UTC
 The fix did not reintroduce anything - what you mention is a
different issue. 47386 was fixed for source folders panel but not for
the web panel, so the problem should have been there before.
 Fixed in trunk anyway - let me know if it works for you. Thanks.
Comment 8 zikmund 2004-08-27 13:38:35 UTC
Great, it works now. Could you please merge both fixes to
QBE200408241800 branch? Thanks, Karel.
Comment 9 Martin Grebac 2004-08-27 13:49:13 UTC
Merged to qbe branch.
Comment 10 zikmund 2004-10-27 10:20:54 UTC
Verified.