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 240822

Summary: NullPointerException at com.sun.tools.javac.comp.Resolve.findMethod
Product: java Reporter: pverity
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: misterm
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206839
Attachments: stacktrace

Description pverity 2014-01-22 14:28:11 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
pverity: Correcting a line of code

wordList.forEach(System.out.println(String::toString));

I got as far as this (incomplete edit):

wordList.forEach( w-> System.out.println(w->::toString));

Then got a NPE error.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1645)
   at com.sun.tools.javac.comp.Resolve$MethodReferenceLookupHelper.lookup(Resolve.java:3162)
   at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3318)
   at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3303)
   at com.sun.tools.javac.comp.Resolve.getMemberReference(Resolve.java:2711)
   at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitReference(DeferredAttr.java:1078)
Comment 1 pverity 2014-01-22 14:28:12 UTC
Created attachment 144250 [details]
stacktrace
Comment 2 Dusan Balek 2014-11-28 09:22:12 UTC
*** Bug 243597 has been marked as a duplicate of this bug. ***
Comment 3 Exceptions Reporter 2015-10-07 12:36:59 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206839