diff --git a/app/assets/javascripts/editor/evaluation.js b/app/assets/javascripts/editor/evaluation.js index e603b89f..30fa37c9 100644 --- a/app/assets/javascripts/editor/evaluation.js +++ b/app/assets/javascripts/editor/evaluation.js @@ -173,7 +173,7 @@ CodeOceanEditorEvaluation = { }, printOutput: function (output, colorize, index) { - if (output === undefined || output.stderr === undefined && output.stdout === undefined) { + if (output === undefined || output === null || output.stderr === undefined && output.stdout === undefined) { // Prevent empty element with no text at all return; }