diff options
author | syeyoung <cyoung06@naver.com> | 2021-11-04 19:50:24 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2021-11-04 19:50:24 +0900 |
commit | 43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b (patch) | |
tree | e3fee2fe55e3f9229337a2308a3b8dec0147dd9e /src/main/java/kr/syeyoung/dungeonsguide/features/impl/party | |
parent | cf170841df9521f3a70d34711dbe3662b03fc0b2 (diff) | |
download | Skyblock-Dungeons-Guide-43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b.tar.gz Skyblock-Dungeons-Guide-43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b.tar.bz2 Skyblock-Dungeons-Guide-43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b.zip |
- NPE on disabled api
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/party')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |