From 6a58bf6d442158f91cd1cee50dd8107292ff2b16 Mon Sep 17 00:00:00 2001 From: maverickstuder Date: Mon, 7 Oct 2024 16:36:53 +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 e4c57ccb..d095ba48 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 @@ -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)); } } -- 2.47.2