Fixed npe in commands parser

This commit is contained in:
Robin Kupper
2011-08-29 13:40:36 +02:00
parent de3fe01fe1
commit 0df4cbf9f4

View File

@@ -443,7 +443,7 @@ public class QueryParams implements Cloneable
if (isKeyWord(args.get(i)))
break;
if (i == offset)
return null;
return new String[0];
final String[] values = new String[i - offset];
for (int j = offset; j < i; j++)
values[j - offset] = args.get(j);