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 217865 - NullPointerException at org.netbeans.modules.web.javascript.debugger.MiscEditorUtil.getLine
Summary: NullPointerException at org.netbeans.modules.web.javascript.debugger.MiscEdit...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-05 08:47 UTC by Jiri Skrivanek
Modified: 2012-09-07 07:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192125


Attachments
stacktrace (2.76 KB, text/plain)
2012-09-05 08:47 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-09-05 08:47:34 UTC
Build: NetBeans IDE Dev (Build web-main-8418-on-20120905)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows 7

User Comments:
jskrivanek: To reproduce:
- create HTML 5 project
- copy the following to body of index.html

            var a1 = [
                    1,
                    2,
                    3,
                    4
                    ];
            document.writeln("a1=" + a1);

- toggle breakpoint at var a1
- run file in Embedded browser
- debugger stops at var a1
- press F7
- debugger stops at document...
- press F7
- green line still at document... and exception is thrown




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.javascript.debugger.MiscEditorUtil.getLine(MiscEditorUtil.java:147)
   at org.netbeans.modules.web.javascript.debugger.callstack.CallStackAnnotationListener.propertyChange(CallStackAnnotationListener.java:123)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
   at org.netbeans.modules.web.webkit.debugging.api.Debugger.setCurrentCallFrame(Debugger.java:304)
Comment 1 Jiri Skrivanek 2012-09-05 08:47:36 UTC
Created attachment 123928 [details]
stacktrace
Comment 2 Martin Entlicher 2012-09-06 13:10:50 UTC
Reproduced.
Comment 3 Martin Entlicher 2012-09-06 16:04:32 UTC
Fixed by changeset:   231986:0eaa6a7d0952
http://hg.netbeans.org/main/rev/0eaa6a7d0952
Comment 4 Quality Engineering 2012-09-07 02:12:21 UTC
Integrated into 'main-golden', will be available in build *201209070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0eaa6a7d0952
User: mentlicher@netbeans.org
Log: #217865: Prevent from NPE when the script is not known.