diff --git a/lib/plaid/models/link_token_create_request.rb b/lib/plaid/models/link_token_create_request.rb index e51d1464a..7f241c7b4 100644 --- a/lib/plaid/models/link_token_create_request.rb +++ b/lib/plaid/models/link_token_create_request.rb @@ -265,7 +265,7 @@ def list_invalid_properties end - if @country_codes.length < 1 + if @country_codes && @country_codes.length < 1 invalid_properties.push('invalid value for "country_codes", number of items must be greater than or equal to 1.') end