fix npe
This commit is contained in:
parent
f2b2dbc794
commit
a6e490dbe5
@ -121,7 +121,7 @@ public class PremiumProfile extends Serializable {
|
|||||||
Document document = new Document();
|
Document document = new Document();
|
||||||
document.put("activatedAt", this.activatedAt);
|
document.put("activatedAt", this.activatedAt);
|
||||||
document.put("expiresAt", this.expiresAt);
|
document.put("expiresAt", this.expiresAt);
|
||||||
document.put("type", this.type.name());
|
document.put("type", this.type != null ? this.type.name() : null);
|
||||||
return document;
|
return document;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user