aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2021-11-04 19:50:24 +0900
committersyeyoung <cyoung06@naver.com>2021-11-04 19:50:24 +0900
commit43ccbbe9f6972d6e1caf075fe6bb7c92404cf60b (patch)
treee3fee2fe55e3f9229337a2308a3b8dec0147dd9e /src/main/java
parentcf170841df9521f3a70d34711dbe3662b03fc0b2 (diff)
downloadSkyblock-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')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/DataRendererTalismans.java2
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;
}