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 56687 - NPE after modifying the project sources
Summary: NPE after modifying the project sources
Status: RESOLVED DUPLICATE of bug 56045
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-20 04:16 UTC by mabasara
Modified: 2005-03-21 09:20 UTC (History)
0 users

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 mabasara 2005-03-20 04:16:26 UTC
NPE after modifying the project sources:
Steps to reproduce the error:
1. create a new web project
2. open project properties
3. in the sources section, remove the default source, named "Source Packages",
and add a different folder.
4. click on OK to save your changes
Then, the error will popup...

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException: Must pass a non-null filename
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.resolveFileObject(AntProjectHelper.java:942)
	at
org.netbeans.modules.web.project.ui.WebViews$LogicalViewChildren.getSources(WebViews.java:376)
	at
org.netbeans.modules.web.project.ui.WebViews$LogicalViewChildren.getKeys(WebViews.java:366)
	at
org.netbeans.modules.web.project.ui.WebViews$LogicalViewChildren.buildKeys(WebViews.java:172)
	at
org.netbeans.modules.web.project.ui.WebViews$LogicalViewChildren.access$200(WebViews.java:87)
	at org.netbeans.modules.web.project.ui.WebViews$1.run(WebViews.java:358)
	at org.openide.util.Task.run(Task.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
Comment 1 zikmund 2005-03-21 09:20:41 UTC
Same steps to reproduce as in issue 56045.

*** This issue has been marked as a duplicate of 56045 ***