cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 159095 - NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
: NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
Status: RESOLVED FIXED
: profiler
Base
: 6.7
: All All
: P2 (vote)
: 6.7
Assigned To:
:
: http://statistics.netbeans.org/except...
: EXCEPTIONS_REPORT
:
:
:
  Show dependency treegraph
 
Reported: 2009-02-24 19:09 by
Modified: 2009-03-17 08:30 (History)
Issue Type: DEFECT
:


Attachments
stacktrace (10.45 KB, text/plain)
2009-02-24 19:09, baffyofdaffy
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-02-24 19:09:17
Build: NetBeans IDE Dev (Build 200812180001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment,
1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
baffyofdaffy: OK, I just already sent this report once, but I also found that
not only checking the box caused the NPE but I could not get the plus sign next
to the project (in the root methods area) to expand or blink or anything. It
just stuck. I tried with the keyboard also



Stacktrace: 
java.lang.NullPointerException
        at
com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:154)
        at
com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:62)
        at
org.netbeans.modules.profiler.j2ee.selector.nodes.web.servlet.ServletsNode$Children$1.run(ServletsNode.java:132)
        at
org.netbeans.modules.profiler.j2ee.selector.nodes.web.servlet.ServletsNode$Children$1.run(ServletsNode.java:125)
        at
org.netbeans.api.java.source.JavaSource$MimeTask.run(JavaSource.java:513)
        at
org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:172)
------- Comment #1 From 2009-02-24 19:09:30 -------
Created an attachment (id=77315) [details]
stacktrace
------- Comment #2 From 2009-02-25 13:12:07 -------
"Product feature doesn't work, a workaround may exist but it's difficult to use
or impractical"??
------- Comment #3 From 2009-03-12 14:00:20 -------
'null' value should not be passed to Elements.getTypeElement(...). Reassigning.
------- Comment #4 From 2009-03-12 16:49:06 -------
Partially caused probably by a misconfiguration of web.xml.
Fixed by adding sanity checks before calling Elements.getElementType

http://hg.netbeans.org/profiler-main/rev/01f15a67975c
------- Comment #5 From 2009-03-17 08:30:42 -------
Integrated into 'main-golden', will be available in build *200903170201* on
http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/01f15a67975c
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #159095 - preventing NPE when calling JavacElements.getTypeElement()