Skip to content

Commit

Permalink
SAK-32456 Don't blow up if start/end dates aren't set (sakaiproject#4266
Browse files Browse the repository at this point in the history
)
  • Loading branch information
marktriggs authored and jonespm committed Apr 17, 2017
1 parent 16c2f9e commit 4349f77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public DecoratedSyllabusEntry(SyllabusData en)
this.orig_endDate = en.getEndDate() == null ? null : (Date) en.getEndDate().clone();
this.orig_isLinkCalendar= en.isLinkCalendar();
this.orig_status = en.getStatus();
this.startDateString = DateUtil.format(en.getStartDate(), DATEPICKER_DATETIME_FORMAT, rb.getLocale());
this.endDateString = DateUtil.format(en.getEndDate(), DATEPICKER_DATETIME_FORMAT, rb.getLocale());
this.startDateString = en.getStartDate() == null ? "" : DateUtil.format(en.getStartDate(), DATEPICKER_DATETIME_FORMAT, rb.getLocale());
this.endDateString = en.getEndDate() == null ? "" : DateUtil.format(en.getEndDate(), DATEPICKER_DATETIME_FORMAT, rb.getLocale());
}

public SyllabusData getEntry()
Expand Down

0 comments on commit 4349f77

Please sign in to comment.