Skip to content

Commit

Permalink
change to string of null values cause "null" is more clear than of em…
Browse files Browse the repository at this point in the history
…pty string
  • Loading branch information
markusweigelt committed Feb 7, 2022
1 parent adaf87d commit 10b940f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kitodo/src/main/java/org/kitodo/production/helper/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public static void setErrorMessage(String control, String message, Exception e)
*/
public static void setErrorMessage(String title, Object... parameters) {
if (Objects.nonNull(parameters) && parameters.length > 0) {
setErrorMessage(getTranslation(title, Arrays.stream(parameters)
.map(object -> Objects.nonNull(object) ? Objects.toString(object) : "").toArray(String[]::new)));
setErrorMessage(getTranslation(title,
Arrays.stream(parameters).map(object -> Objects.toString(object)).toArray(String[]::new)));
} else {
setErrorMessage(getTranslation(title));
}
Expand Down

0 comments on commit 10b940f

Please sign in to comment.