From bc8becae8e84787245940612eb7937b945ce3cf2 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 29 Mar 2016 18:47:04 +1100 Subject: [PATCH] Check for null --- .../java/com/intellectualcrafters/plot/database/SQLManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 587f356d7..b2fc6a5b0 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -2107,7 +2107,7 @@ public class SQLManager implements AbstractDB { addPlotTask(plot, new UniqueStatement("setPosition") { @Override public void set(PreparedStatement stmt) throws SQLException { - stmt.setString(1, position); + stmt.setString(1, position == null ? "" : position); stmt.setInt(2, getId(plot)); }