Skip to content

Commit

Permalink
Fix profiler crashing instead of showing usage when no arguments are …
Browse files Browse the repository at this point in the history
…given
  • Loading branch information
LunNova committed Feb 7, 2016
1 parent 371538b commit d6b916f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ private boolean process(final ICommandSender commandSender, List<String> argumen
Integer z = null;
ProfilingState type;
try {
if (arguments.isEmpty())
throw new UsageException();

type = ProfilingState.get(arguments.get(0));
if (type == null)
throw new RuntimeException();
Expand Down

0 comments on commit d6b916f

Please sign in to comment.