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 248484

Summary: NullPointerException at org.netbeans.modules.java.api.common.SourceRoots$7.run
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 213252
Attachments: stacktrace

Description Exceptions Reporter 2014-11-07 10:48:54 UTC
This bug was originally marked as duplicate of bug 180438, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
GUEST: I was updating my project from repository. The problem is my coleague committed changes to the project, he even changed type of the project from Java application to HTML5 project. After the update, I went to project properties and I have set the web and web-inf directories on the Sources tab. I think then the exception occured.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.api.common.SourceRoots$7.run(SourceRoots.java:370)
   at org.openide.util.Mutex.writeAccess(Mutex.java:479)
   at org.netbeans.modules.java.api.common.SourceRoots.putRoots(SourceRoots.java:356)
   at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.storeRoots(WebProjectProperties.java:930)
   at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.storeProperties(WebProjectProperties.java:679)
   at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.access$200(WebProjectProperties.java:131)
Comment 1 Exceptions Reporter 2014-11-07 10:48:56 UTC
Created attachment 150340 [details]
stacktrace
Comment 2 Tomas Zezula 2015-03-31 16:48:20 UTC
Either broken project.xml with no source-roots with "http://www.netbeans.org/ns/j2se-project/3" namespace or broken XML parser not handling namespaces. Be sure no XML Parser is on JDK endorsed classpath.

Better exception with project.xml content is now thrown.

*** This bug has been marked as a duplicate of bug 242403 ***