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 240694 - NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl
Summary: NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosi...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 11:40 UTC by nicu2005
Modified: 2014-01-23 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206758


Attachments
stacktrace (1.99 KB, text/plain)
2014-01-20 11:40 UTC, nicu2005
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicu2005 2014-01-20 11:40:08 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
nicu2005: paste some text into java file (in editor) ...




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:150)
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:145)
   at org.netbeans.modules.java.hints.introduce.InstanceRefFinder.visitNewClass(InstanceRefFinder.java:452)
   at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1532)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81)
Comment 1 nicu2005 2014-01-20 11:40:10 UTC
Created attachment 144140 [details]
stacktrace
Comment 2 Svata Dedic 2014-01-21 09:26:05 UTC
Fixed in jet-main#240694
Comment 3 Quality Engineering 2014-01-23 02:39:54 UTC
Integrated into 'main-silver', will be available in build *201401230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/dc3ca82ba996
User: Svata Dedic <sdedic@netbeans.org>
Log: #240694: NPE on half-typed new expression fixed