Skip to content

Commit cd7eae6

Browse files
committed
more nulls
1 parent 5960635 commit cd7eae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/larkery/simpleorgsync/cal/CalSyncAdapter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ private void setHeadingFromQuery(Cursor query, Heading heading, Timestamp ts) {
518518
ts.setAllDay(query.getInt(EventsProjection.IS_ALL_DAY.ordinal()) == 1);
519519
final String rrule = query.getString(EventsProjection.RRULE.ordinal());
520520
ts.setRRule(rrule);
521-
if (rrule.isEmpty()) {
521+
if (rrule == null || rrule.isEmpty()) {
522522
ts.setEndTime(query.getLong(EventsProjection.END_TIME.ordinal()));
523523
} else {
524524
// have to do this after setting start time!

0 commit comments

Comments
 (0)