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.
ProjectMemberConvertor.write throws NullPointerException on SourcesDescriptor from JavaProject. The descriptor is being found in java project as follows: JavaProject javaProject = JavaProject.getJavaProject(project); Collection javaSources = javaProject.getSources(); Iterator jsIt = javaSources.iterator(); if (jsIt.hasNext()) { ProjectMember srcpm = (ProjectMember)jsIt.next(); return srcpm; // <== thats him,!=null } Trying to convert srcpm to settings via ProjectMemberConvertor throws NullPointerException.
If DOMConvertor delegated reading/writing to a plain Convertor it did not pass the context containing source FileObject at all. fixed in src/org/netbeans/spi/settings/DOMConvertor.java,v 1.4
additional fix of revision 1.4. The delegating writer does not return written content via toString(), so the origin CharArrayWriter has to be asked. src/org/netbeans/spi/settings/DOMConvertor.java,v 1.5
It should be fixed now, thanks Honzo. Ondro could you please verify the fix. You should check out the core/settings module which received the fix.
Silence means agreement.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as CLOSED.