Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ad nil check

  • Loading branch information...
commit 9650ae62416edb3c5fb985697f5ab33e9609ecf8 1 parent 8efff11
@astevens authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/authenticom_rpa.rb
View
6 lib/authenticom_rpa.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.