1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Check for null

This commit is contained in:
Zrips 2017-07-04 14:15:33 +03:00
parent d227d9d2b8
commit f79cdf3d60

View File

@ -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) {