From: David ‘Bombe’ Roden Date: Mon, 8 Apr 2013 19:54:25 +0000 (+0200) Subject: Create correctly sized array. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=01bb28f41329776ac113bb1c7a3c8e8e69aff83f;p=xudocci.git Create correctly sized array. --- 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()])); } /**