mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined method `merge' for nil:NilClass

manuelmeurer opened this issue · comments

When I call Mailjet::Contact_getcontactslists.find with a contact ID that has is not a member of any lists, I get the following error:

NoMethodError: undefined method `merge' for nil:NilClass
  /Users/manuel/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mailjet-1.5.4/lib/mailjet/resource.rb:122:in `instanciate_from_api'
  /Users/manuel/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mailjet-1.5.4/lib/mailjet/resource.rb:82:in `find'

Seems like this has been fixed.