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 Dev (Build 201305192300) VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02 OS: Windows 7 User Comments: grosinosky: The bug repeats when I open a valid (it seems to me) Javascript source file. If I go to another tab, it repeats. Even if I close the tab concerning the source file. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveTypeFromExpression(ModelUtils.java:586) at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveTypes(ModelUtils.java:762) at org.netbeans.modules.javascript2.editor.JsStructureScanner$JsFunctionStructureItem.appendFunctionDescription(JsStructureScanner.java:459) at org.netbeans.modules.javascript2.editor.JsStructureScanner$JsFunctionStructureItem.getHtml(JsStructureScanner.java:413) at org.netbeans.modules.csl.navigation.ElementNode.getHtmlDisplayName(ElementNode.java:144) at org.openide.explorer.view.VisualizerNode.getHtmlDisplayName(VisualizerNode.java:540)
Created attachment 134807 [details] stacktrace
Created attachment 134814 [details] File which provokes the bug
Reproducible with attached file, it makes IDE unusable as it pops out all the time if the file is focused in editor Product Version: NetBeans IDE Dev (Build 201305262300) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Fixed in web-main. Thanks for the reproducible file.
Integrated into 'main-golden', will be available in build *201305281155* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/46dd7f565e04 User: Petr Pisl <ppisl@netbeans.org> Log: #230177 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveTypeFromExpression