This commit is contained in:
Grishka 2022-11-26 20:14:30 +03:00
parent 62411a563f
commit 4200486aeb
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class Poll extends BaseModel{
} }
public boolean isExpired(){ public boolean isExpired(){
return expired || expiresAt.isBefore(Instant.now()); return expired || (expiresAt!=null && expiresAt.isBefore(Instant.now()));
} }
@Parcel @Parcel