Skip to content
Snippets Groups Projects
Commit c41be989 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Defense against TypeError: xtrn_area.editor[thisuser.editor] is undefined

parent 14e082bd
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -115,7 +115,8 @@ function display_menu(thisuser)
keys += 'E';
console.add_hotspot('E');
console.putmsg(format(bbs.text(bbs.text.UserDefaultsXeditor)
,thisuser.editor ? xtrn_area.editor[thisuser.editor].name : bbs.text(bbs.text.None)));
,(thisuser.editor && xtrn_area.editor[thisuser.editor])
? xtrn_area.editor[thisuser.editor].name : bbs.text(bbs.text.None)));
}
if (bbs.text(bbs.text.UserDefaultsArcType).length) {
keys += 'A';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment