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 34016 - NPE in JavaDataObjectLook.getName
Summary: NPE in JavaDataObjectLook.getName
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 32967 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-29 15:54 UTC by Ondrej Rypacek
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
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. (3.43 KB, text/plain)
2003-05-29 15:55 UTC, Ondrej Rypacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Rypacek 2003-05-29 15:54:01 UTC
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.
Comment 1 Ondrej Rypacek 2003-05-29 15:55:00 UTC
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.
Comment 2 Jan Pokorsky 2003-06-20 15:15:56 UTC
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.
Comment 3 Jan Pokorsky 2003-06-24 15:37:18 UTC
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
Comment 4 Tomas Zezula 2003-06-26 15:24:49 UTC
*** Issue 32967 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2003-11-25 14:00:06 UTC
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 --->
Comment 6 Jan Becicka 2003-11-25 14:08:58 UTC
---> CLOSED