From d452e3040cfcf66d6d57e64d9a1c05cfc826b1ac Mon Sep 17 00:00:00 2001 From: Vinicius Barbosa Date: Fri, 25 Oct 2019 12:22:16 -0300 Subject: [PATCH] Update SqlCreateBuilder.java --- main/src/com/google/refine/exporters/sql/SqlCreateBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");