diff --git a/src/main/java/edu/byu/cs/controller/SubmissionController.java b/src/main/java/edu/byu/cs/controller/SubmissionController.java index bfadfcc57..dc7c43737 100644 --- a/src/main/java/edu/byu/cs/controller/SubmissionController.java +++ b/src/main/java/edu/byu/cs/controller/SubmissionController.java @@ -229,7 +229,7 @@ public static Submission getMostRecentSubmission(String netId, Phase phase) thro int count = countString == null ? -1 : Integer.parseInt(countString); // if they don't give a count, set it to -1, which gets all latest submissions Collection submissions = null; try { - DaoService.getSubmissionDao().getAllLatestSubmissions(count); + submissions = DaoService.getSubmissionDao().getAllLatestSubmissions(count); } catch (DataAccessException e) { LOGGER.error("Error getting latest submissions", e); halt(500);