We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77928f7 commit 01b754dCopy full SHA for 01b754d
webapp/src/Service/DOMJudgeService.php
@@ -895,7 +895,10 @@ public function checkIfSamplesZipForContest(Contest $contest): bool
895
->setParameter('cid', $contest->getCid());
896
897
/** @var Contest $contest */
898
- $contest = $contestQuery->getQuery()->getSingleResult();
+ $contest = $contestQuery->getQuery()->getOneOrNullResult();
899
+ if (!$contest) {
900
+ return false;
901
+ }
902
903
if ($contest->getContestProblemsetType()) {
904
return true;
0 commit comments