Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit 1390911

Browse files
committed
filtering by date updated so that null can be passed
1 parent ff09a5f commit 1390911

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/podio/filter/PodioDateInterval.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public String serialize() {
2727
}
2828

2929
public static final PodioDateInterval absolute(LocalDate fromDate, LocalDate toDate) {
30-
return new PodioDateInterval(new AbsolutePodioDate(fromDate), new AbsolutePodioDate(toDate));
30+
return new PodioDateInterval(fromDate == null ? null : new AbsolutePodioDate(fromDate),
31+
toDate == null ? null : new AbsolutePodioDate(toDate));
3132
}
3233

3334
}

0 commit comments

Comments
 (0)