diff options
author | matthias-luger <58751503+matthias-luger@users.noreply.github.com> | 2023-02-08 12:13:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 12:13:22 +0100 |
commit | e43d5685fdf0d436d5836d06c5d3f15da674e7df (patch) | |
tree | 799fcdbe76dfc603c9dca57093aa07e086130af7 /src | |
parent | 13bf5a9efeba93c6da82e2bb40d3f01372f52326 (diff) | |
download | COFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.tar.gz COFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.tar.bz2 COFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.zip |
prevent nullpointer exception from description handler (#90)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/torui/coflsky/handlers/EventRegistry.java | 1 |
1 files changed, 1 insertions, 0 deletions
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); } } |