From 4781952ab8ae30a517757a5d9999e0a4201809ba Mon Sep 17 00:00:00 2001 From: Brianna Date: Sat, 11 May 2019 17:09:53 -0400 Subject: [PATCH] Fixed issue with favorites initializing as null. --- src/main/java/com/songoda/epicheads/players/EPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicheads/players/EPlayer.java b/src/main/java/com/songoda/epicheads/players/EPlayer.java index ff64410..935dcd2 100644 --- a/src/main/java/com/songoda/epicheads/players/EPlayer.java +++ b/src/main/java/com/songoda/epicheads/players/EPlayer.java @@ -20,7 +20,8 @@ public class EPlayer { public EPlayer(UUID uuid, List favorites) { this.uuid = uuid; - this.favorites = favorites; + if (favorites != null) + this.favorites = favorites; } public UUID getUuid() {