From 4200486aebfb56494b4563cfc4446bcab407d082 Mon Sep 17 00:00:00 2001 From: Grishka Date: Sat, 26 Nov 2022 20:14:30 +0300 Subject: [PATCH] fix --- mastodon/src/main/java/org/joinmastodon/android/model/Poll.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Poll.java b/mastodon/src/main/java/org/joinmastodon/android/model/Poll.java index 26e1c5900..037a1115b 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Poll.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Poll.java @@ -49,7 +49,7 @@ public class Poll extends BaseModel{ } public boolean isExpired(){ - return expired || expiresAt.isBefore(Instant.now()); + return expired || (expiresAt!=null && expiresAt.isBefore(Instant.now())); } @Parcel