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

Summary: Invoking code completion results in java.lang.NullPointerException
Product: java Reporter: Martin Balin <mbalin>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal Keywords: JDK_9
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Full NPE stack trace

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.