Check for null

This commit is contained in:
Jesse Boyd 2016-03-29 18:47:04 +11:00
parent 6f9af04274
commit bc8becae8e

View File

@ -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));
}