Skip to content

Commit

Permalink
FORGE-1791: Fixed NPE caused by missing ResultHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 13, 2014
1 parent 2f57118 commit 9075e30
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ private ProcessedCommand generateCommand(final CommandController command, final
{
UICommandMetadata metadata = (command instanceof WizardCommandController) ? ((WizardCommandController) command)
.getInitialMetadata() : command.getMetadata();
final ProcessedCommand parameter = new ProcessedCommand(ShellUtil.shellifyName(metadata.getName()).toLowerCase(),
metadata.getDescription(), (CommandValidator<?>) null);
String cmdName = ShellUtil.shellifyName(metadata.getName()).toLowerCase();
String cmdDescription = metadata.getDescription();
final ProcessedCommand parameter = new ProcessedCommand(cmdName, cmdDescription,
(Class<? extends CommandValidator<?>>) null, null);

for (Entry<String, InputComponent<?, ?>> entry : inputs.entrySet())
{
Expand Down

0 comments on commit 9075e30

Please sign in to comment.