Fix a nomethoderror on a nil

This commit is contained in:
Mitchell Hashimoto 2011-12-17 11:54:21 -08:00
parent c5ec4b4a30
commit a327eadd5f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module Vagrant
# If we reached this far then we must have a subcommand. If not,
# then we also just print the help and exit.
command_class = Vagrant.commands.get(@sub_command.to_sym)
command_class = Vagrant.commands.get(@sub_command.to_sym) if @sub_command
return help if !command_class || !@sub_command
@logger.debug("Invoking command class: #{command_class} #{@sub_args.inspect}")