From 01bb28f41329776ac113bb1c7a3c8e8e69aff83f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Apr 2013 21:54:25 +0200 Subject: [PATCH] Create correctly sized array. --- src/main/java/net/pterodactylus/irc/Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/irc/Connection.java b/src/main/java/net/pterodactylus/irc/Connection.java index 0e7c461..ba4e283 100644 --- a/src/main/java/net/pterodactylus/irc/Connection.java +++ b/src/main/java/net/pterodactylus/irc/Connection.java @@ -446,7 +446,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic setParameters.add(maybeSetParameter.get()); } } - sendCommand(command, setParameters.toArray(new String[0])); + sendCommand(command, setParameters.toArray(new String[setParameters.size()])); } /** -- 2.7.4