Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Crashes on Android 2.3.7 (API 10) #159

Closed
nemphys opened this issue Mar 30, 2015 · 6 comments
Closed

Crashes on Android 2.3.7 (API 10) #159

nemphys opened this issue Mar 30, 2015 · 6 comments

Comments

@nemphys
Copy link

nemphys commented Mar 30, 2015

After successfully integrating the SDK payment functionality in my app, it seems to work flawlessly in all tested Android versions, except v.2.3.7 (API 10, Genymotion emulator).
The stack trace is as follows (though it is not so helpful, due to obfuscation):

E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.NullPointerException
            at com.paypal.android.sdk.R.a(Unknown Source)
            at com.paypal.android.sdk.O.a(Unknown Source)
            at com.paypal.android.sdk.payments.n.a(Unknown Source)
            at com.paypal.android.sdk.payments.PaymentMethodActivity.i(Unknown Source)
            at com.paypal.android.sdk.payments.bn.onServiceConnected(Unknown Source)
            at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064)
            at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:130)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)

This happens right after the Paypal activity is started (startActivityForResult).

Any ideas?

@braebot
Copy link
Contributor

braebot commented Mar 30, 2015

Thanks for reporting this. I assume you're using the latest PayPal Sdk, 2.9.0? I'm reviewing the code, and will need to reproduce this myself to get an accurate location of the NPE.

@nemphys
Copy link
Author

nemphys commented Mar 31, 2015

Yes, I am using the latest SDK (2.9.0), thanks for looking into it.

@braebot
Copy link
Contributor

braebot commented Mar 31, 2015

Thanks for the info! I was able to reproduce this on a 2.3.5 device. We'll have a fix out shortly.

@nemphys
Copy link
Author

nemphys commented Mar 31, 2015

No intention to be rude, but do you have any idea about when the fix will be released?
I was planning to launch the update with the Paypal functionality today, but if this issue will be fixed soon I wold be willing to wait for it.

@braebot
Copy link
Contributor

braebot commented Mar 31, 2015

Expect a new release tomorrow. ⌚

@braebot
Copy link
Contributor

braebot commented Apr 1, 2015

Fixed in 2.9.1

@braebot braebot closed this as completed Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants