Skip to content

Commit 2db52b2

Browse files
author
Chris K
committed
Fix for DFL-3230, Exception around context selection.
1 parent d51ed42 commit 2db52b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ecma-debugger/templates.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@
6666
selected_script_id, search_term)
6767
{
6868
var script_list = ["div"];
69-
for (var i = 0, rt; rt = runtimes[i]; i++)
69+
if (runtimes && runtimes.length)
7070
{
71-
script_list.push(this.runtime_script(rt, stopped_script_id,
72-
selected_script_id, search_term));
71+
for (var i = 0, rt; rt = runtimes[i]; i++)
72+
{
73+
script_list.push(this.runtime_script(rt, stopped_script_id,
74+
selected_script_id, search_term));
75+
}
7376
}
7477
script_list.push("class", "js-dd-script-list",
7578
"handler", "js-dd-move-highlight");

0 commit comments

Comments
 (0)