fix
This commit is contained in:
parent
62411a563f
commit
4200486aeb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue