From 7055654f7fd676ba915cdf5a0295d6a9224cffef Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 27 Feb 2023 02:06:27 +0900 Subject: - Fix NPE on FeatureDungeonCurrentRoomSecrets Signed-off-by: syeyoung --- .../mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java index 502707bf..85b9ddd7 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureDungeonCurrentRoomSecrets.java @@ -65,7 +65,8 @@ public class FeatureDungeonCurrentRoomSecrets extends TextHUDFeature { @Override public TextSpan getText() { - if (DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext().getBossfightProcessor() != null) return new TextSpan(new NullTextStyle(), ""); + if (DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext() + != null && DungeonsGuide.getDungeonsGuide().getDungeonFacade().getContext().getBossfightProcessor() != null) return new TextSpan(new NullTextStyle(), ""); TextSpan actualBit = new TextSpan(new NullTextStyle(), ""); actualBit.addChild(new TextSpan(getStyle("title"), "Secrets In Room")); actualBit.addChild(new TextSpan(getStyle("separator"), ": ")); -- cgit