IDEMPIERE-5904 NPE for Search Fields within Reference Keys (#2086)

- Fix NPE
This commit is contained in:
hengsin 2023-11-04 05:49:35 +08:00 committed by GitHub
parent e3cab6c238
commit f0f5823691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -610,6 +610,8 @@ public class MLookupFactory
for (LookupDisplayColumn ldc : list) {
retValue.lookupDisplayColumnNames.add(ldc.ColumnName);
}
} else {
retValue.lookupDisplayColumnNames = new ArrayList<>(retValue.lookupDisplayColumns);
}
s_cacheRefTable.put(key.toString(), retValue.cloneIt());
return retValue;