Skip to content

Commit

Permalink
Fix NPE when checking registration conclusion date
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanaFernandes committed Sep 20, 2016
1 parent 67d1142 commit 54a22d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public static String readAllStudentsInfoForJobBank() {
}
}
for (ConclusionProcess conclusionProcess : Bennu.getInstance().getConclusionProcessesSet()) {
if (conclusionProcess.getConclusionDate() != null
if (conclusionProcess.getLastVersion() != null && conclusionProcess.getConclusionDate() != null
&& !conclusionProcess.getConclusionDate().plusYears(1).isBefore(today)) {
registrations.add(conclusionProcess.getRegistration());
}
Expand Down

0 comments on commit 54a22d8

Please sign in to comment.