Skip to content

Commit

Permalink
Merge pull request #456 from Koalephant/Fix-Vagrant-Destroy
Browse files Browse the repository at this point in the history
Don't try to call methdods on Nil.
  • Loading branch information
cjlapao authored Aug 24, 2023
2 parents 5de75d1 + f14f750 commit 5cc8045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-parallels/util/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Common
# Determines whether the VM's box contains a macOS guest for an Apple Silicon host.
# In this case the image file ends with '.macvm' instead of '.pvm'
def self.is_macvm(machine)
return !!Dir.glob(machine.box.directory.join('*.macvm')).first
return !machine.box.nil? && !!Dir.glob(machine.box.directory.join('*.macvm')).first
end

end
Expand Down

0 comments on commit 5cc8045

Please sign in to comment.