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 253157 - NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Summary: NullPointerException at com.sun.tools.javac.model.JavacElements.cast
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 12:02 UTC by jan.kurnatowski
Modified: 2015-07-01 01:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168664


Attachments
stacktrace (2.67 KB, text/plain)
2015-06-24 12:02 UTC, jan.kurnatowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jan.kurnatowski 2015-06-24 12:02:34 UTC
Build: NetBeans IDE Dev (Build 201506220001)
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:
jan.kurnatowski: Error occurred while I was navigating to Java class code using Ctrl + left mouse click

jplatts: I was trying to edit code.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.model.JavacElements.cast(JavacElements.java:652)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:401)
   at com.sun.tools.javac.model.JavacElements.getAllMembers(JavacElements.java:61)
   at org.netbeans.modules.java.hints.bugs.CollectionRemove.run(CollectionRemove.java:188)
   at org.netbeans.modules.java.hints.bugs.CollectionRemove.mapGet(CollectionRemove.java:131)
   at sun.reflect.GeneratedMethodAccessor283.invoke(GeneratedMethodAccessor283.java:0)
Comment 1 jan.kurnatowski 2015-06-24 12:02:36 UTC
Created attachment 154373 [details]
stacktrace
Comment 2 Dusan Balek 2015-06-30 09:01:01 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/189abd1bcf38
Comment 3 Quality Engineering 2015-07-01 01:18:33 UTC
Integrated into 'main-silver', will be available in build *201507010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/189abd1bcf38
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #253157 - NullPointerException at com.sun.tools.javac.model.JavacElements.cast - fixed.