From 3e8308ecd74769191e718228d7142bbb6170d096 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 13 Feb 2019 13:35:19 +0000 Subject: [PATCH] Catch statement already being null --- .../intellectualsites/plotsquared/plot/database/SQLManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/database/SQLManager.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/database/SQLManager.java index 013b2c7ca..2995a448d 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/database/SQLManager.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/database/SQLManager.java @@ -351,7 +351,7 @@ import java.util.concurrent.atomic.AtomicInteger; task.set(statement); task.addBatch(statement); try { - if (statement.isClosed()) { + if (statement != null && statement.isClosed()) { statement = null; } } catch (AbstractMethodError ignore) {