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 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)
Created attachment 123928 [details] stacktrace
Reproduced.
Fixed by changeset: 231986:0eaa6a7d0952 http://hg.netbeans.org/main/rev/0eaa6a7d0952
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.