From 43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b Mon Sep 17 00:00:00 2001 From: syeyoung Date: Thu, 4 Nov 2021 19:50:24 +0900 Subject: - NPE on disabled api --- .../features/impl/party/playerpreview/DataRendererTalismans.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java index db17322d..d94ae506 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java @@ -53,7 +53,9 @@ public class DataRendererTalismans implements DataRenderer { playerProfile.getAdditionalProperties().put("talismanCnt", cnts); } int[] rawData = (int[]) playerProfile.getAdditionalProperties().get("talismanCnt"); + String str = ""; + if (rawData != null) for (Rarity r : Rarity.values()) { str = r.color+rawData[r.idx] +" "+ str; } -- cgit