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:
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,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;
|
||||
|
Loading…
Reference in New Issue
Block a user