From 7ef78d6ab102a1893bdba620602bd2ee31993dd8 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 2 Nov 2018 15:37:57 +0100 Subject: [PATCH] Allow Hook#getFailureCause() to return null --- .../java/world/bentobox/bentobox/managers/HooksManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/managers/HooksManager.java b/src/main/java/world/bentobox/bentobox/managers/HooksManager.java index feddf3db7..bf967e31b 100644 --- a/src/main/java/world/bentobox/bentobox/managers/HooksManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/HooksManager.java @@ -26,7 +26,7 @@ public class HooksManager { if (hook.hook()) { hooks.add(hook); } else { - plugin.log("Could not hook with " + hook.getPluginName() + " because: " + hook.getFailureCause() + ". Skipping..."); + plugin.log("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping..."); } } }