Skip to content

Commit

Permalink
devonfw#404: fixed WireMock tests
Browse files Browse the repository at this point in the history
fixed compose array out of bounds exception
  • Loading branch information
jan-vcapgemini committed Jan 28, 2025
1 parent e8a30a8 commit b4669bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public String log(Throwable error, String message, Object... args) {
// fail fast if assertions are enabled, so developers of IDEasy will find the bug immediately but in productive use better log the error and continue
assert false : actualMessage;
}
} else if (args != null) {
} else if (args != null && args.length > 0) {
actualMessage = compose(actualMessage, args);
}
boolean accept = this.listener.onLog(this.level, actualMessage, message, args, error);
Expand Down

0 comments on commit b4669bb

Please sign in to comment.