mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Check for null
This commit is contained in:
parent
6f9af04274
commit
bc8becae8e
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user