From e43d5685fdf0d436d5836d06c5d3f15da674e7df Mon Sep 17 00:00:00 2001 From: matthias-luger <58751503+matthias-luger@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:13:22 +0100 Subject: prevent nullpointer exception from description handler (#90) --- src/main/java/de/torui/coflsky/handlers/EventRegistry.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java index bd5cd25..354dfb9 100644 --- a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java +++ b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java @@ -236,6 +236,7 @@ public class EventRegistry { @SubscribeEvent(priority = EventPriority.HIGHEST) public void onItemTooltipEvent(ItemTooltipEvent event) { if (!config.extendedtooltips) return; + if(descriptionHandler == null) return; descriptionHandler.setTooltips(event); } } -- cgit