mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-27 09:16:16 +01:00
fix
This commit is contained in:
parent
62411a563f
commit
4200486aeb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user