Skip to content

Commit

Permalink
ad nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
astevens committed Jan 24, 2013
1 parent 8efff11 commit 9650ae6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/authenticom_rpa.rb
Expand Up @@ -35,7 +35,11 @@ def lookup(phone_number, options = {})
}
)

response.body[:find_info3_response][:find_info3_result][:match]
if response.body[:find_info3_response] && response.body[:find_info3_response][:find_info3_result] && response.body[:find_info3_response][:find_info3_result][:match]
response.body[:find_info3_response][:find_info3_result][:match]
else
nil
end
end
end
end

0 comments on commit 9650ae6

Please sign in to comment.