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 53694 - NPE from ElementFormat$Tag.format
Summary: NPE from ElementFormat$Tag.format
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 15:38 UTC by Lukas Hasik
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE at org.netbeans.modules.java.ui.nodes.elements.ElementFormat$Tag.format(ElementFormat.java:534) (2.34 KB, text/plain)
2005-01-19 15:39 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2005-01-19 15:38:19 UTC
[200501181900]
after reproduction of issue 52882 and return to
code this NPE started appear every 2 seconds.
Comment 1 Lukas Hasik 2005-01-19 15:39:32 UTC
Created attachment 19790 [details]
NPE at org.netbeans.modules.java.ui.nodes.elements.ElementFormat$Tag.format(ElementFormat.java:534)
Comment 2 Jan Becicka 2005-01-25 08:47:44 UTC
Honzo, please look at it. Thanks.
Comment 3 Jan Pokorsky 2005-02-07 14:53:07 UTC
Closing as WORKSFORME. It looks like the java model is broken in some
way after issue #52882. I am not able to reproduce it.

Here is the line of ElementFormat where NPE is thrown:

buf.append(((TypedElement) element).getType().getName());

Since neither buf nor element are null then getType has to return null
under some condition.
Comment 4 Lukas Hasik 2006-09-14 10:32:49 UTC
v