Skip to content

Commit

Permalink
Merge pull request kitodo#5831 from matthias-ronge/patch-77
Browse files Browse the repository at this point in the history
Prevent NPE
  • Loading branch information
solth authored Jan 9, 2024
2 parents e8f5b17 + 2787cae commit d3bba5c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d3bba5c

Please sign in to comment.