Check for output before accessing stderr or stdout
This commit is contained in:
@ -173,7 +173,7 @@ CodeOceanEditorEvaluation = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
printOutput: function (output, colorize, index) {
|
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
|
// Prevent empty element with no text at all
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user