diff --git a/src/main/java/cc/fascinated/bat/premium/PremiumProfile.java b/src/main/java/cc/fascinated/bat/premium/PremiumProfile.java index 2c1f5ba..cb63d13 100644 --- a/src/main/java/cc/fascinated/bat/premium/PremiumProfile.java +++ b/src/main/java/cc/fascinated/bat/premium/PremiumProfile.java @@ -121,7 +121,7 @@ public class PremiumProfile extends Serializable { Document document = new Document(); document.put("activatedAt", this.activatedAt); document.put("expiresAt", this.expiresAt); - document.put("type", this.type.name()); + document.put("type", this.type != null ? this.type.name() : null); return document; }