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 - NullPointerException at com.sun.tools.javac.comp.Resolve.findMethod
Summary: NullPointerException at com.sun.tools.javac.comp.Resolve.findMethod
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 243597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-22 14:28 UTC by pverity
Modified: 2015-10-07 12:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206839


Attachments
stacktrace (5.38 KB, text/plain)
2014-01-22 14:28 UTC, pverity
Details

Note You need to log in before you can comment on or make changes to this bug.
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