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:
parent
425c7ec66d
commit
0ca90fbcb5
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user