Permalink
Browse files

added check in gmail importer for empty option argument

  • Loading branch information...
1 parent b5c89de commit adbe5384dd2752d607e9e87f1299ff9f62f01bd6 @Diego81 committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/omnicontacts/importer/gmail.rb
@@ -15,7 +15,7 @@ def initialize *args
@scope = "https://www.google.com/m8/feeds"
@contacts_host = "www.google.com"
@contacts_path = "/m8/feeds/contacts/default/full"
- @max_results = args[3][:max_results] || 100
+ @max_results = (args[3] && args[3][:max_results]) || 100
end
def fetch_contacts_using_access_token access_token, token_type

0 comments on commit adbe538

Please sign in to comment.