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.
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)
Created attachment 144140 [details] stacktrace
Fixed in jet-main#240694
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