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.
JavaDataObjectLook obtained by the following code new LookNode(javaSourceFO, null, ProjectUtil.lookSelector(project)); , where javaSourceFO is a file object obtained from the fileset returned by Java Sources Descriptor, throws NullPointerException when getName() is invoked.
Created attachment 10511 [details] Attaching the exception trace. It is mostly JarPackager's code, where at the end I try to obtain LookNode by the above code and call getName on it to get a display name for the node.
Do you have a test case? The look is often used to present java files in the project tab and AFAIK no one has reported such a problem yet.
I get it. The look was written to be used just for ProjectMember wrapping text/x-java mime type. I have fixed it to work well for file objects too. It is a question if the projects infra. should provide different environments in the node substitute for mime types and project members. /cvs/java/src/org/netbeans/modules/java/ui/looks/Attic/JavaDataObjectLook.java,v <-- JavaDataObjectLook.java new revision: 1.1.2.10; previous revision: 1.1.2.9
*** Issue 32967 has been marked as a duplicate of this issue. ***
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 VERIFIED --->
---> CLOSED