Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paypal: fix dereference error in paypal_express_response #628

Closed

Conversation

pierre
Copy link
Contributor

@pierre pierre commented Mar 21, 2013

Calling PaypalExpressResponse#address when the response didn't contain
any address information was causing a dereference error:

NoMethodError: undefined method `[]' for nil:NilClass

Testing done: verified the dereference error doesn't happen
by issuing a SetExpressCheckout API Operation with an invalid
security header.

Signed-off-by: Pierre-Alexandre Meyer pierre@ning.com

Calling PaypalExpressResponse#address when the response didn't contain
any address information was causing a dereference error:

  NoMethodError: undefined method `[]' for nil:NilClass

Testing done: verified the dereference error doesn't happen
by issuing a SetExpressCheckout API Operation with an invalid
security header.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
@ntalbott ntalbott closed this in 66a0f23 Mar 29, 2013
chengz pushed a commit to chengz/active_merchant that referenced this pull request Dec 7, 2013
Calling PaypalExpressResponse#address when the response didn't contain
any address information was causing a dereference error:

  NoMethodError: undefined method `[]' for nil:NilClass

Closes activemerchant#628.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant