From c7f4a27f662015e2e96b68ef0697196c0565f4e0 Mon Sep 17 00:00:00 2001 From: Michael Brohl Date: Mon, 1 Feb 2021 17:43:19 +0100 Subject: [PATCH] Fixed: Possible NPE in DatabaseUtil.getColumnInfo(...) (OFBIZ-11385) Manually backported to 18.12 because of code differences. --- .../main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java index 0edd110442..f20dad1f5f 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/jdbc/DatabaseUtil.java @@ -1032,7 +1032,7 @@ public class DatabaseUtil { private Map> getColumnInfo(Set tableNames, boolean getPks, Collection messages, ExecutorService executor) { // if there are no tableNames, don't even try to get the columns - if (tableNames.size() == 0) { + if (UtilValidate.isEmpty(tableNames)) { return new HashMap>(); }