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 Dev JDK9 branch (Build 201506120405) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14 OS: Windows 7 User Comments: GUEST: in the middle of editing code for a maven web application. jiriprox: NPE when clean & build project which depeneds on another project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.hints.jdk.mapreduce.PreconditionsChecker.isIterbale(PreconditionsChecker.java:192) at org.netbeans.modules.java.hints.jdk.mapreduce.PreconditionsChecker.<init>(PreconditionsChecker.java:96) at org.netbeans.modules.java.hints.jdk.mapreduce.ForLoopToFunctionalHint.computeWarning(ForLoopToFunctionalHint.java:75) at sun.reflect.GeneratedMethodAccessor312.invoke(GeneratedMethodAccessor312.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497)
Created attachment 154226 [details] stacktrace
Created attachment 154755 [details] stacktrace edit code
Created attachment 154757 [details] stacktrace edit the code
JDK9 branch specific, probably null TypeMirror is being returned instead of some error type. Should be fixed in trunk (checked for valid TypeMiror before processing), but also investigated if/why the return value from getTypeMirror() changed.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213750
Reported as well for mainline build, I am going to add the null check ... ignore the previous comment about JDK9/compiler.
Fixed in jet-main#5ee1b6ff21ef
Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5ee1b6ff21ef User: Svata Dedic <sdedic@netbeans.org> Log: #253000: null check added; only valid types are inspected