From 5b18b918a95dfc28c80062198f1fdfb5bf9001c4 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 8 Mar 2018 08:37:17 +1100 Subject: [PATCH] Ignore unsupported statement isClosed --- .../intellectualcrafters/plot/database/SQLManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java index 8e5aef6d5..fed766e19 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -359,9 +359,11 @@ public class SQLManager implements AbstractDB { } task.set(statement); task.addBatch(statement); - if (statement.isClosed()) { - statement = null; - } + try { + if (statement.isClosed()) { + statement = null; + } + } catch (AbstractMethodError ignore) {} } lastTask = task; } catch (Throwable e) {