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 242757 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getTypeMirror
Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getTypeMirror
Status: RESOLVED DUPLICATE of bug 243715
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 19:19 UTC by MackSix
Modified: 2015-04-07 14:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208300


Attachments
stacktrace (3.41 KB, text/plain)
2014-03-10 19:19 UTC, MackSix
Details
stacktrace (3.41 KB, text/plain)
2014-03-10 19:46 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-03-10 19:19:23 UTC
Build: NetBeans IDE 8.0 (Build 201403052200)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
MackSix: 1. Download Apache Commons Collection 4.0 source. 
http://commons.apache.org/proper/commons-collections/download_collections.cgi
2. Open it in NetBeans 8.0 FCS.
3. Do a priming build if needed.
4. Goto Source>>Inspect and choose Configuration: NetBeans Java Hints.
5. Press Inspect button and wait for exception.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.api.JavacTrees.getTypeMirror(JavacTrees.java:721)
   at org.netbeans.modules.java.hints.bugs.SuspiciousToArray.run(SuspiciousToArray.java:107)
   at sun.reflect.GeneratedMethodAccessor126.invoke(GeneratedMethodAccessor126.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
   at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336)
Comment 1 MackSix 2014-03-10 19:19:25 UTC
Created attachment 145913 [details]
stacktrace
Comment 2 MackSix 2014-03-10 19:46:08 UTC
Created attachment 145914 [details]
stacktrace

Repetable.

Happens with JDK 1.7.0_51 too.
Comment 3 Svata Dedic 2015-04-07 14:28:25 UTC
Fixed by dbalek as issue #243715

*** This bug has been marked as a duplicate of bug 243715 ***