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 47740 - [40cat] NPE when attempting to browse web pages folder
Summary: [40cat] NPE when attempting to browse web pages folder
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: Radko Najman
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-08-23 21:14 UTC by jasondonmoyer
Modified: 2006-03-24 09:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
my log file (261.50 KB, text/plain)
2004-08-23 21:15 UTC, jasondonmoyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2004-08-23 21:14:54 UTC
[ JDK VERSION : J2SE 1.4.2_05 ]

I get the following error when attempting to 'Browse' for a new 'Web Pages Folder' from the project Properties -> Web Sources menu:

java.lang.NullPointerException
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel.jButtonWebActionPerformed(WebLocationsPanel.java:211)
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel.access$000(WebLocationsPanel.java:39)
	at org.netbeans.modules.ant.freeform.ui.WebLocationsPanel$1.actionPerformed(WebLocationsPanel.java:110)
	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)



A few extra items of note...  This project was created from an existing ant script using the wizard.  I noticed after creating the project successfully, and opening the 'Project Properties' dialog that many of the paths which had shown up had ${project.dir} substituted in the middle of all of the paths (i.e. C:\dev\Insight\Manager\${project.dir}\web  The correct path should have been C:\dev\Insight\Manager\web)

I'm unable to delete or change these paths so they are correct.
Comment 1 jasondonmoyer 2004-08-23 21:15:21 UTC
Created attachment 17050 [details]
my log file
Comment 2 Jesse Glick 2004-08-23 21:18:29 UTC
Bug in web portion I presume.

Re. ${project.dir} - may be a separate bug, in which case please file
separately. David may know more about it - possibly already fixed in
trunk builds but not in beta 1?
Comment 3 David Konecny 2004-08-24 09:23:07 UTC
Re. ${project.dir}: it is issue 47744 filed by Jason.
Comment 4 zikmund 2004-08-24 16:02:21 UTC
Reproducible in build 200408231800.
Comment 5 Radko Najman 2004-08-31 16:13:23 UTC
It has been already fixed by another fixes. Thanks to Martin.
Comment 6 zikmund 2004-08-31 17:04:29 UTC
Verified.