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 269287 - NullPointerException at com.sun.tools.javac.code.Symbol.packge
Summary: NullPointerException at com.sun.tools.javac.code.Symbol.packge
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 270737 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-09 14:49 UTC by Jesse Glick
Modified: 2017-05-26 10:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227497


Attachments
stacktrace (4.37 KB, text/plain)
2016-12-09 14:49 UTC, Jesse Glick
Details
stacktrace (4.37 KB, text/plain)
2016-12-12 13:45 UTC, Jesse Glick
Details
stacktrace (4.37 KB, text/plain)
2016-12-15 21:27 UTC, Jesse Glick
Details
stacktrace (2.34 KB, text/plain)
2017-01-26 11:44 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2016-12-09 14:49:01 UTC
Build: NetBeans IDE Dev (Build 20161201-605679720ee0)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
jglick: Classpath scanning after clean build.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Symbol.packge(Symbol.java:497)
   at com.sun.tools.javac.model.JavacElements.binaryNameToClassSymbol(JavacElements.java:175)
   at com.sun.tools.javac.model.JavacElements.getTypeElementByBinaryName(JavacElements.java:157)
   at com.sun.tools.javac.model.JavacElements.getTypeElementByBinaryName(JavacElements.java:145)
   at org.netbeans.api.java.source.ElementHandle.getTypeElementByBinaryName(ElementHandle.java:646)
   at org.netbeans.api.java.source.ElementHandle.resolveImpl(ElementHandle.java:174)
Comment 1 Jesse Glick 2016-12-09 14:49:03 UTC
Created attachment 163195 [details]
stacktrace
Comment 2 Jesse Glick 2016-12-12 13:45:46 UTC
Created attachment 163208 [details]
stacktrace

Switching branch of a multimodule project.
Comment 3 Jesse Glick 2016-12-15 21:27:51 UTC
Created attachment 163255 [details]
stacktrace

Opening Groovy sources (trunk) as a Gradle project.
Comment 4 Exceptions Reporter 2017-01-26 11:38:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=227497
Comment 5 cezariusz 2017-01-26 11:44:42 UTC
Created attachment 163471 [details]
stacktrace

typing "g"
Comment 7 Quality Engineering 2017-05-05 01:46:29 UTC
Integrated into 'main-silver', will be available in build *201705050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e2f57b26fbbb
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #258803 and #269287 fixed.
Comment 8 cezariusz 2017-05-05 07:45:18 UTC
> ownerSym.packge().modle

A typo in the compiler (modle)?
Comment 9 Dusan Balek 2017-05-26 10:20:37 UTC
*** Bug 270737 has been marked as a duplicate of this bug. ***