Skip to content

Commit

Permalink
Merge pull request #662 from bcgov/develop/alex-GRAD2-2799
Browse files Browse the repository at this point in the history
GRAD2-2799-P3 GRAD Incident: REGALG is creating SCCP certificates for…
  • Loading branch information
githubmamatha authored Jun 27, 2024
2 parents 63e59f0 + 5d74410 commit d1e4087
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ public static GradStatusEventPayloadDTO transform(GraduationStudentRecordEntity
.build();
}

private static Date toLastDayOfMonth(Date date) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));
return cal.getTime();
static Date toLastDayOfMonth(Date date) {
if(date != null) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));
return cal.getTime();
}
return null;
}

}

0 comments on commit d1e4087

Please sign in to comment.