diff --git a/art/themes/luciano_blocktronics/CONFSCR.ANS b/art/themes/luciano_blocktronics/CONFSCR.ANS index e3db0cbb..809adf6e 100644 Binary files a/art/themes/luciano_blocktronics/CONFSCR.ANS and b/art/themes/luciano_blocktronics/CONFSCR.ANS differ diff --git a/art/themes/luciano_blocktronics/NUA.ANS b/art/themes/luciano_blocktronics/NUA.ANS index b57cc056..4830d76f 100644 Binary files a/art/themes/luciano_blocktronics/NUA.ANS and b/art/themes/luciano_blocktronics/NUA.ANS differ diff --git a/core/color_codes.js b/core/color_codes.js index 5c81f3ec..9c3e4192 100644 --- a/core/color_codes.js +++ b/core/color_codes.js @@ -98,6 +98,9 @@ function ansiSgrFromCnetStyleColorCode(cc) { } function renegadeToAnsi(s, client) { + if (!s) { + return ''; + } if (-1 == s.indexOf('|')) { return s; // no pipe codes present } diff --git a/core/string_util.js b/core/string_util.js index 3f78b37d..5d053bc1 100644 --- a/core/string_util.js +++ b/core/string_util.js @@ -45,6 +45,10 @@ const SIMPLE_ELITE_MAP = { }; function stylizeString(s, style) { + if (!s) { + return ''; + } + var len = s.length; var c; var i; diff --git a/core/text_view.js b/core/text_view.js index 2cb19040..b41c192e 100644 --- a/core/text_view.js +++ b/core/text_view.js @@ -153,7 +153,11 @@ TextView.prototype.setText = function (text, redraw) { if (!_.isString(text)) { // allow |text| to be numbers/etc. - text = text.toString(); + if (_.isUndefined(text) || null === text) { + text = ''; + } else { + text = text.toString(); + } } const formatObj = getPredefinedMCIFormatObject(this.client, text);