mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +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>
|
||||
<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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -44,7 +44,6 @@ 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user