Merge branch 'hotfix-npe-component-log-fp' into 'master'

Hotfix for NPE when creating component log

See merge request redactmanager/redaction-service!534
This commit is contained in:
Maverick Studer 2024-10-07 18:01:16 +02:00
commit 92d03de194

View File

@ -52,7 +52,7 @@ public class ComponentLogCreatorService {
for (ComponentDefinition componentDefinition : componentDefinitions) {
String technicalName = componentDefinition.getTechnicalName().toLowerCase(Locale.ROOT);
if (!existingComponentNames.contains(technicalName)) {
componentLogEntries.add(new ComponentLogEntry(componentDefinition.getDisplayName(), null, null, false));
componentLogEntries.add(new ComponentLogEntry(componentDefinition.getDisplayName(), new ArrayList<>(), new ArrayList<>(), false));
}
}