Skip to content

Commit b4669bb

Browse files
devonfw#404: fixed WireMock tests
fixed compose array out of bounds exception
1 parent e8a30a8 commit b4669bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/main/java/com/devonfw/tools/ide/log/AbstractIdeSubLogger.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public String log(Throwable error, String message, Object... args) {
143143
// 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
144144
assert false : actualMessage;
145145
}
146-
} else if (args != null) {
146+
} else if (args != null && args.length > 0) {
147147
actualMessage = compose(actualMessage, args);
148148
}
149149
boolean accept = this.listener.onLog(this.level, actualMessage, message, args, error);

0 commit comments

Comments
 (0)