Fixed: Possible NPE in DatabaseUtil.getColumnInfo(...) (OFBIZ-11385)
Manually backported to 18.12 because of code differences.
This commit is contained in:
@@ -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>>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user