Merge branch 'hotfix-npe-component-log' into 'release/4.348.x'

Hotfix for NPE when creating component log

See merge request redactmanager/redaction-service!533
This commit is contained in:
Maverick Studer 2024-10-07 16:50:07 +02:00
commit dc48145452

View File

@ -51,7 +51,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, false));
componentLogEntries.add(new ComponentLogEntry(componentDefinition.getDisplayName(), new ArrayList<>(), false));
}
}