diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 9407947e6f..e318880153 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -56,7 +56,7 @@ module Hbc end def full_name - return token if tap.user == "Homebrew" + return token if tap&.user == "Homebrew" qualified_token end