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 250654 - NullPointerException at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.computeSuper
Summary: NullPointerException at org.netbeans.modules.java.classfile.CodeGenerator$Tre...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 10:37 UTC by tveimo
Modified: 2015-04-12 04:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215625


Attachments
stacktrace (3.38 KB, text/plain)
2015-02-24 10:37 UTC, tveimo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tveimo 2015-02-24 10:37:09 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-b50, Java(TM) SE Runtime Environment, 1.9.0-ea-b50
OS: Mac OS X

User Comments:
tveimo: Add source (zip file) for a maven dependency (jar file), then remove that zip file from disk. Try to double click on the class.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.computeSuper(CodeGenerator.java:409)
   at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:330)
   at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:270)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1172)
   at javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:111)
   at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:320)
Comment 1 tveimo 2015-02-24 10:37:11 UTC
Created attachment 152175 [details]
stacktrace
Comment 2 Svata Dedic 2015-03-30 13:56:41 UTC
Fixed by jet-main#e5a76ebe188f
Comment 3 Quality Engineering 2015-04-12 04:25:34 UTC
Integrated into 'main-silver', will be available in build *201504120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e5a76ebe188f
User: Svata Dedic <sdedic@netbeans.org>
Log: #250654: avoid NPEs on inaccessible JRE