Skip to content

Commit

Permalink
Don't try to call methdods on Nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenreay committed Jul 18, 2023
1 parent d846359 commit f14f750
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 f14f750

Please # to comment.