From f79cdf3d60af3e66267fe3b3e94d2160b8f78b2a Mon Sep 17 00:00:00 2001 From: Zrips Date: Tue, 4 Jul 2017 14:15:33 +0300 Subject: [PATCH] Check for null --- src/main/java/com/gamingmesh/jobs/Jobs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 470c15e8..5ef68c56 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -1117,7 +1117,7 @@ public class Jobs extends JavaPlugin { return false; } getBpManager().add(block, cd); - if (cd == 0 && getGCManager().useGlobalTimer) { + if ((cd == null || cd == 0) && getGCManager().useGlobalTimer) { getBpManager().add(block, getGCManager().globalblocktimer); } } else if (getGCManager().useGlobalTimer) {