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

AndroidPayActivity - closing activity causes runtime exception #139

Closed
JoshHughes-JP opened this issue Feb 2, 2017 · 4 comments
Closed

Comments

@JoshHughes-JP
Copy link

issue created/arisen from fix in 2.4.1 (changePaymentMethod)

repro:

  • using changePaymentMethod to open Braintree's AndroidPayActivity
  • user presses back or uses "x" button to close screen.
  • runtimeException thrown.

stack trace snippet:

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {com.justpark.jp.debug/com.braintreepayments.api.AndroidPayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.putExtra(java.lang.String, android.os.Parcelable)' on a null object reference

source of issues seems to be in OnActivityResult method in AndroidPayActivity. (line 141?)

@lkorth lkorth closed this as completed in 11c598b Feb 2, 2017
@lkorth
Copy link
Member

lkorth commented Feb 2, 2017

Thanks for the report @JoshJustPark! This has been fixed and will go out in the next release.

@matthewbrooks
Copy link

We've just come across this issue. Do you know when the next release might be?

@lkorth
Copy link
Member

lkorth commented Feb 6, 2017

@matthewbrooks we'll make a release in the next day or two.

@lkorth
Copy link
Member

lkorth commented Feb 10, 2017

This was just released in 2.4.2.

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

No branches or pull requests

3 participants