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

BraintreePaymentActivity crashes on onBackPressed() #30

Closed
richk opened this issue May 12, 2015 · 3 comments
Closed

BraintreePaymentActivity crashes on onBackPressed() #30

richk opened this issue May 12, 2015 · 3 comments

Comments

@richk
Copy link

richk commented May 12, 2015

05-12 13:46:09.763  13657-13657/org.coursera.android.debug E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: org.coursera.android.debug, PID: 13657
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.braintreepayments.api.Braintree.sendAnalyticsEvent(java.lang.String)' on a null object reference
            at com.braintreepayments.api.dropin.BraintreePaymentActivity.onBackPressed(BraintreePaymentActivity.java:381)
            at android.app.Activity.onKeyUp(Activity.java:2456)
            at android.view.KeyEvent.dispatch(KeyEvent.java:2643)
            at android.app.Activity.dispatchKeyEvent(Activity.java:2707)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2276)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4020)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3982)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3713)
            at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3874)
            at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2208)
            at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1849)
            at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1840)
            at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2185)
            at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:143)
            at android.os.Looper.loop(Looper.java:122)
            at android.app.ActivityThread.main(ActivityThread.java:5254)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
@lkorth
Copy link
Member

lkorth commented May 12, 2015

@richk thanks for the report.

It seems like this is being caused by pressing back before Braintree has been initialized. Does this happen when you press back as soon as Drop-in launches and is still on the first loading screen?

@ramanclabs
Copy link

I'm facing the same issue.
@lkorth yes this happens when we press back as soon as Drop-In launched and is still on the first loading screen.

Please help us out

@lkorth lkorth closed this as completed in 09af7be May 23, 2015
@lkorth
Copy link
Member

lkorth commented May 23, 2015

Thanks for the report @richk, this was fixed in 1.5.1

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