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 204155 - [71cat] NullPointerException at com.sun.tools.javac.model.JavacElements.getTypeElement
Summary: [71cat] NullPointerException at com.sun.tools.javac.model.JavacElements.getTy...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 204558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-24 12:39 UTC by stefan79
Modified: 2012-06-08 05:45 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181412


Attachments
stacktrace (2.32 KB, text/plain)
2011-10-24 12:40 UTC, stefan79
Details
stacktrace (2.32 KB, text/plain)
2011-10-26 15:14 UTC, _ rkubacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-10-24 12:39:59 UTC
Build: NetBeans IDE Dev (Build 201110200600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
theosib: Pasting and selecting to automatically add imports.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:145)
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:61)
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$1.run(ClipboardHandler.java:144)
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$1.run(ClipboardHandler.java:122)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:665)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:655)
Comment 1 stefan79 2011-10-24 12:40:05 UTC
Created attachment 112369 [details]
stacktrace
Comment 2 _ rkubacki 2011-10-26 15:14:37 UTC
Created attachment 112467 [details]
stacktrace

coding
Comment 3 Quality Engineering 2011-11-16 15:45:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d574bdd7b88c
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #204155: preventing NPE.
Comment 4 Jan Lahoda 2012-03-26 07:18:12 UTC
Fixed by the above changeset
Comment 5 Jan Lahoda 2012-06-08 05:45:51 UTC
*** Bug 204558 has been marked as a duplicate of this bug. ***