1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Check for null pointer

This commit is contained in:
Zrips 2023-02-17 14:42:08 +02:00
parent 425c7ec66d
commit 0ca90fbcb5
3 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>5.1.2.0</version>
<version>5.1.2.2</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>

View File

@ -41,7 +41,7 @@ public class BlockProtectionManager {
public void add(Block block, Integer cd) {
if (cd == 0)
if (cd == null || cd == 0)
return;
// Assuming that block is bottom part of flower we will add top part to the record too

View File

@ -44,11 +44,10 @@ import com.gamingmesh.jobs.economy.PaymentData;
import com.gamingmesh.jobs.stuff.TimeManage;
import com.gamingmesh.jobs.stuff.Util;
import net.Zrips.CMILib.Logs.CMIDebug;
import net.Zrips.CMILib.Messages.CMIMessages;
public abstract class JobsDAO {
private JobsConnectionPool pool;
private static String prefix;
private Jobs plugin;