Commit 100b7dee authored by Matija Obreza's avatar Matija Obreza
Browse files

Bug: Fixed issue where SysTable#tableFields list contains a null element

- Fixes #289
parent 69f86899
......@@ -444,11 +444,11 @@
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.gringlobal</groupId>
<artifactId>ggce-commons</artifactId>
<version>2022.3-SNAPSHOT</version>
</dependency>
</dependency> -->
<!-- Java 11 -->
<dependency>
<groupId>org.apache.commons</groupId>
......
......@@ -1182,7 +1182,10 @@ public class DataviewServiceImpl implements InitializingBean, DataviewService {
for (final Element xmlField : updateXml.getChildren()) {
LOG.debug("Applying {} = {}", xmlField.getName(), xmlField.getValue());
final SysTableField sysTableField = sysTableFields.stream().filter(stF -> stF.getFieldName().equals(xmlField.getName())).findFirst().orElse(null);
final SysTableField sysTableField = sysTableFields.stream()
// Find field
.filter(stF -> stF != null && StringUtils.equalsIgnoreCase(xmlField.getName(), stF.getFieldName())).findFirst().orElse(null);
String fieldName = xmlField.getName();
if (sysTableField != null) {
LOG.debug("Applying {}.{} as {}", targetClazz, fieldName, sysTableField.getFieldName());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment