diff --git a/app/assets/javascripts/editor/evaluation.js b/app/assets/javascripts/editor/evaluation.js index ad91f9fe..e603b89f 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.stderr === undefined && output.stdout === undefined) { + if (output === undefined || output.stderr === undefined && output.stdout === undefined) { // Prevent empty element with no text at all return; }