From bf812e783f57ed27e3881f9ebd24c550923a50ba Mon Sep 17 00:00:00 2001 From: Neon Date: Sun, 1 Dec 2024 15:11:23 +0100 Subject: [PATCH] Fixed NPE when creating new characters --- .../aionemu/gameserver/model/account/PlayerAccountData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game-server/src/com/aionemu/gameserver/model/account/PlayerAccountData.java b/game-server/src/com/aionemu/gameserver/model/account/PlayerAccountData.java index 49dd33c2a..37d7b38d4 100644 --- a/game-server/src/com/aionemu/gameserver/model/account/PlayerAccountData.java +++ b/game-server/src/com/aionemu/gameserver/model/account/PlayerAccountData.java @@ -2,6 +2,7 @@ import java.sql.Timestamp; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import com.aionemu.gameserver.model.gameobjects.Item; @@ -31,7 +32,7 @@ public class PlayerAccountData { private LegionMember legionMember; public PlayerAccountData(PlayerCommonData playerCommonData, PlayerAppearance appearance) { - this(playerCommonData, appearance, null, null, null); + this(playerCommonData, appearance, null, Collections.emptyList(), null); } public PlayerAccountData(PlayerCommonData playerCommonData, PlayerAppearance appearance, CharacterBanInfo cbi, List equipment,