Allow Hook#getFailureCause() to return null

This commit is contained in:
Florian CUNY 2018-11-02 15:37:57 +01:00
parent 856dcb8b3d
commit 7ef78d6ab1

View File

@ -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...");
}
}
}