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 237052

Summary: NullPointerException at com.sun.tools.javac.util.ListBuffer.append
Product: java Reporter: jenjen
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: clinuxrulz, jenjen, Majora320, theshadow27, yardus, zmirc
Priority: P2    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204527
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description jenjen 2013-10-11 23:58:25 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-442-on-20130909)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows 7

User Comments:
jenjen: Renamed class




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.util.ListBuffer.append(ListBuffer.java:131)
   at com.sun.tools.javac.tree.TreeInfo.types(TreeInfo.java:756)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2403)
   at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1615)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:589)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2539)
Comment 1 jenjen 2013-10-11 23:58:27 UTC
Created attachment 141023 [details]
stacktrace
Comment 2 J Bachorik 2014-03-16 14:10:25 UTC
Created attachment 146052 [details]
stacktrace

opening openjdk project
Comment 3 Exceptions Reporter 2014-09-22 16:09:06 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204527
Comment 4 Exceptions Reporter 2014-10-17 21:58:30 UTC
Created attachment 149966 [details]
stacktrace

No idea?
Comment 5 zmirc 2015-08-25 09:35:01 UTC
It just happened to me on NB DEV 201508230002.

That's what I did: 
I was in Projects left window, then I selected a Java file from my project, then CTRL+C to copy it, then I selected the package that contained that class, then CTRL+V to make a copy of the previously copied Java file, then this error appeared.

Stacktrace + messages.log here: http://statistics.netbeans.org/analytics/exception.do?id=790755
Comment 6 Exceptions Reporter 2015-12-10 09:28:16 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204527
Comment 7 Dusan Balek 2016-01-05 13:50:07 UTC
Hard to fix without a reproducible test case. Any steps to reproduce would be welcome.
Comment 8 theshadow27 2016-03-17 21:11:28 UTC
Created attachment 158915 [details]
stacktrace

Code completion? "if (it."
Comment 9 Dusan Balek 2016-06-29 12:46:52 UTC
Should be fixed together with #262392.