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.
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)
Created attachment 144250 [details] stacktrace
*** Bug 243597 has been marked as a duplicate of this bug. ***
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=206839