Skip to content

Commit c90b917

Browse files
committed
Fix completion script generation
1 parent aaf2166 commit c90b917

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/rabbitmq/stream/perf/StreamPerfTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,11 @@ public StreamPerfTest(
558558
PrintStream consoleOut,
559559
PrintStream consoleErr,
560560
AddressResolver addressResolver) {
561-
this.arguments = Arrays.copyOf(arguments, arguments.length);
561+
if (arguments == null) {
562+
this.arguments = new String[] {};
563+
} else {
564+
this.arguments = Arrays.copyOf(arguments, arguments.length);
565+
}
562566
if (consoleOut == null) {
563567
consoleOut = System.out;
564568
}

0 commit comments

Comments
 (0)