Fixed: Possible NPE in DatabaseUtil.getColumnInfo(...) (OFBIZ-11385)

Manually backported to 18.12 because of code differences.
This commit is contained in:
Michael Brohl
2021-02-01 17:43:19 +01:00
parent b19c0d3173
commit c7f4a27f66
@@ -1032,7 +1032,7 @@ public class DatabaseUtil {
private Map<String, Map<String, ColumnCheckInfo>> getColumnInfo(Set<String> tableNames, boolean getPks, Collection<String> 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<String, Map<String, ColumnCheckInfo>>();
}