Skip to content

Commit

Permalink
Merge pull request #249 from SusanaFernandes/jerseyServices/FIST-350
Browse files Browse the repository at this point in the history
Fix NPE when checking registration conclusion date FIST-350 #resolve
  • Loading branch information
pedrosan7os authored Sep 20, 2016
2 parents 2c04ad2 + 54a22d8 commit 32caac0
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 32caac0

Please sign in to comment.