From 1d2abf18a2e798bcb6bb833ce57cef963c916c72 Mon Sep 17 00:00:00 2001 From: maverickstuder Date: Mon, 7 Oct 2024 16:35:27 +0200 Subject: [PATCH] Hotfix for NPE when creating component log --- .../server/service/components/ComponentLogCreatorService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/service/components/ComponentLogCreatorService.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/service/components/ComponentLogCreatorService.java index 34d4f70d..981b8bee 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/service/components/ComponentLogCreatorService.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/service/components/ComponentLogCreatorService.java @@ -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)); } } -- 2.47.2