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 230177 - NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.resolveTypeFromExpression
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.model.impl.Mo...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 12:47 UTC by grosinosky
Modified: 2013-05-28 14:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200868


Attachments
stacktrace (4.52 KB, text/plain)
2013-05-23 12:47 UTC, grosinosky
Details
File which provokes the bug (10.23 KB, text/plain)
2013-05-23 13:46 UTC, grosinosky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grosinosky 2013-05-23 12:47:32 UTC
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)
Comment 1 grosinosky 2013-05-23 12:47:34 UTC
Created attachment 134807 [details]
stacktrace
Comment 2 grosinosky 2013-05-23 13:46:42 UTC
Created attachment 134814 [details]
File which provokes the bug
Comment 3 Vladimir Riha 2013-05-27 07:00:25 UTC
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)
Comment 4 Petr Pisl 2013-05-27 08:58:28 UTC
Fixed in web-main. Thanks for the reproducible file.
Comment 5 Quality Engineering 2013-05-28 14:13:05 UTC
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