1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +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> <modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId> <groupId>Jobs</groupId>
<artifactId>jobs</artifactId> <artifactId>jobs</artifactId>
<version>5.1.2.0</version> <version>5.1.2.2</version>
<name>Jobs</name> <name>Jobs</name>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>

View File

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

View File

@ -44,7 +44,6 @@ import com.gamingmesh.jobs.economy.PaymentData;
import com.gamingmesh.jobs.stuff.TimeManage; import com.gamingmesh.jobs.stuff.TimeManage;
import com.gamingmesh.jobs.stuff.Util; import com.gamingmesh.jobs.stuff.Util;
import net.Zrips.CMILib.Logs.CMIDebug;
import net.Zrips.CMILib.Messages.CMIMessages; import net.Zrips.CMILib.Messages.CMIMessages;
public abstract class JobsDAO { public abstract class JobsDAO {