From 33d2e7cc624abc1dba21a24e9deea354bd232494 Mon Sep 17 00:00:00 2001 From: Matthias Ronge Date: Fri, 3 Nov 2023 11:01:12 +0100 Subject: [PATCH] Update Helper.java --- Kitodo/src/main/java/org/kitodo/production/helper/Helper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Kitodo/src/main/java/org/kitodo/production/helper/Helper.java b/Kitodo/src/main/java/org/kitodo/production/helper/Helper.java index 04c2770c743..955cd7c66f3 100644 --- a/Kitodo/src/main/java/org/kitodo/production/helper/Helper.java +++ b/Kitodo/src/main/java/org/kitodo/production/helper/Helper.java @@ -490,6 +490,7 @@ private static String appendUnusedInsertions(String message, String... insertion StringBuilder messageBuilder = new StringBuilder(message); for (String insertion : insertions) { String separator = ": "; + insertion = Objects.toString(insertion); if (!messageBuilder.toString().contains(insertion)) { messageBuilder.append(separator).append(insertion); }