Skip to content

Commit

Permalink
more nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
larkery committed Jul 14, 2022
1 parent 5960635 commit cd7eae6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ private void setHeadingFromQuery(Cursor query, Heading heading, Timestamp ts) {
ts.setAllDay(query.getInt(EventsProjection.IS_ALL_DAY.ordinal()) == 1);
final String rrule = query.getString(EventsProjection.RRULE.ordinal());
ts.setRRule(rrule);
if (rrule.isEmpty()) {
if (rrule == null || rrule.isEmpty()) {
ts.setEndTime(query.getLong(EventsProjection.END_TIME.ordinal()));
} else {
// have to do this after setting start time!
Expand Down

0 comments on commit cd7eae6

Please sign in to comment.