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 177515 - NullPointerException at com.sun.tools.javac.model.JavacTypes.erasure
Summary: NullPointerException at com.sun.tools.javac.model.JavacTypes.erasure
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 07:19 UTC by Martin Schovanek
Modified: 2010-04-26 07:58 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162399


Attachments
stacktrace (2.40 KB, text/plain)
2009-11-24 07:19 UTC, Martin Schovanek
Details
stacktrace (2.30 KB, text/plain)
2009-12-02 06:16 UTC, Maksim Khramov
Details
stacktrace (2.30 KB, text/plain)
2009-12-06 09:20 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2009-11-24 07:19:53 UTC
Build: NetBeans IDE Dev (Build 091124-16ba26ff4efc)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219
OS: Mac OS X, 10.6.2, x86_64

User Comments:
mschovanek: to reproduce:
----------
1) have a JSF page like:
        <h:dataTable var="x" value="#{NotExistingBean.items}">
            <h:column>
                <h:outputText value="#{x.|}"/>
            </h:column>
        </h:dataTable>
2) invoke CC
ERROR: IDE throws the NPE

GUEST: edit facelets file

earlGrey: JSF 2.0: Traversing the child components in a composite component by <ui:repeat>:
<ui:repeat value="#{component.children}" var="child">
    #{child.}
  </ui:repeat>
The code completion failed after "child.".



Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.model.JavacTypes.erasure(JavacTypes.java:123)
        at org.netbeans.modules.web.core.syntax.completion.api.ELExpression$BaseELTaskClass.extractTypeParameter(ELExpression.java:931)
        at org.netbeans.modules.web.core.syntax.completion.api.ELExpression$BaseELTaskClass.getTypeMirrorPreceedingCaret(ELExpression.java:924)
        at org.netbeans.modules.web.core.syntax.completion.api.ELExpression$BaseELTaskClass.getTypePreceedingCaret(ELExpression.java:735)
        at org.netbeans.modules.web.core.syntax.completion.api.ELExpression$BaseELTaskClass.getTypePreceedingCaret(ELExpression.java:729)
        at org.netbeans.modules.web.core.syntax.completion.api.ELExpression$BaseELTaskClass.getTypePreceedingCaret(ELExpression.java:711)
Comment 1 Martin Schovanek 2009-11-24 07:19:57 UTC
Created attachment 91603 [details]
stacktrace
Comment 2 Marek Fukala 2009-11-24 10:14:45 UTC
reproducible, not typical case, won't be fixed in 6.8
Comment 3 Exceptions Reporter 2009-12-01 14:08:45 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=162399
Comment 4 Maksim Khramov 2009-12-02 06:16:08 UTC
Created attachment 91984 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-12-06 09:20:52 UTC
Created attachment 92185 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-12-28 04:58:27 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=162399
Comment 7 Exceptions Reporter 2010-02-03 06:46:49 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=162399
Comment 8 Marek Fukala 2010-04-26 07:58:42 UTC
The issue was fixed by the fix of the issue 180426:

http://hg.netbeans.org/main/rev/7d061b22143d