diff --git a/lib/easypost/beta/carrier_metadata.rb b/lib/easypost/beta/carrier_metadata.rb index ce2346a2..6903c744 100644 --- a/lib/easypost/beta/carrier_metadata.rb +++ b/lib/easypost/beta/carrier_metadata.rb @@ -20,6 +20,6 @@ def self.retrieve_carrier_metadata(carriers = [], types = [], api_key = nil) path += URI.encode_www_form(params) response = EasyPost.make_request(:get, path, api_key, params) - EasyPost::Util.convert_to_easypost_object(response['carriers'], api_key) + EasyPost::Util.convert_to_easypost_object(response['carriers'] || [], api_key) end end