mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 21:57:11 +00:00
fix potential crash
This commit is contained in:
parent
165d141060
commit
688f2035a6
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ public class SubscriptionPlan extends BaseModel {
|
||||||
|
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
Date today = new Date();
|
Date today = new Date();
|
||||||
return planId != null && this.dateTerminated == null || this.dateTerminated.after(today);
|
if (this.dateTerminated == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return planId != null || this.dateTerminated.after(today);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue