diff --git a/webapp/src/Controller/API/JudgehostController.php b/webapp/src/Controller/API/JudgehostController.php index 8cfa36c80a..8eb6239515 100644 --- a/webapp/src/Controller/API/JudgehostController.php +++ b/webapp/src/Controller/API/JudgehostController.php @@ -394,9 +394,12 @@ public function updateJudgingAction( if ($judging->getOutputCompile() === null) { $judging ->setOutputCompile($output_compile) - ->setCompileMetadata(base64_decode($compileMetadata)) ->setResult(Judging::RESULT_COMPILER_ERROR) ->setEndtime(Utils::now()); + + if ($compileMetadata !== null) { + $judging->setCompileMetadata(base64_decode($compileMetadata)); + } $this->em->flush(); if ($judging->getValid()) {