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 257987 - Invoking code completion results in java.lang.NullPointerException
Summary: Invoking code completion results in java.lang.NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2016-02-15 09:39 UTC by Martin Balin
Modified: 2016-10-11 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full NPE stack trace (3.41 KB, text/plain)
2016-02-15 09:39 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2016-02-15 09:39:14 UTC
Created attachment 158503 [details]
Full NPE stack trace

Running NB jdk9 branch built on 2/15/2016 on top of Jigsaw build 104. Same JDK used as project platform.
Type in java source file code like "System.c" then CC is shown and attached exception is thrown.
java.lang.NullPointerException
	at com.sun.tools.javac.code.Symtab.lookupPackage(Symtab.java:641)
	at com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:424)
	at com.sun.tools.javadoc.DocEnv.loadClass(DocEnv.java:192)
	at org.netbeans.modules.java.source.JavadocEnv.lookupClass(JavadocEnv.java:250)
...

This does not happen when NB 9 is run on top of JDK8 or when cache was already populated during run on JDK8.
Comment 3 Quality Engineering 2016-10-11 01:58:36 UTC
Integrated into 'main-silver', will be available in build *201610110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e5358f0f66a9
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #257987 - Invoking code completion results in java.lang.NullPointerException - fixed.