diff --git a/main/src/com/google/refine/exporters/sql/SqlCreateBuilder.java b/main/src/com/google/refine/exporters/sql/SqlCreateBuilder.java index 7f90b9549..43d967042 100755 --- a/main/src/com/google/refine/exporters/sql/SqlCreateBuilder.java +++ b/main/src/com/google/refine/exporters/sql/SqlCreateBuilder.java @@ -146,7 +146,7 @@ public class SqlCreateBuilder { StringBuffer sql = new StringBuffer(); boolean includeDrop = JSONUtilities.getBoolean(options, "includeDropStatement", false); - boolean addIfExist = options == null ? false : JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true); + boolean addIfExist = JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true); if (includeDrop) { if(addIfExist) { sql.append("DROP TABLE IF EXISTS " + table + ";\n");