Fix another empty args issue for @Values and context

This commit is contained in:
Aikar
2017-07-24 22:55:17 -04:00
parent a2786fa123
commit 00d3837fd0
@@ -208,7 +208,7 @@ public class RegisteredCommand <R extends CommandExecutionContext<? extends Comm
}
final Values values = parameter.getAnnotation(Values.class);
if (values != null) {
String arg = args.get(0);
String arg = !args.isEmpty() ? args.get(0) : "";
final String[] split = ACFPatterns.PIPE.split(scope.manager.getCommandReplacements().replace(values.value()));
Set<String> possible = Sets.newHashSet();