paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
83 stars 95 forks source link

java.lang.NullPointerException: replacement == null at ThirdPartyInvoice.createThirdPartyReturnUrl() #187

Open wvega opened 4 years ago

wvega commented 4 years ago

Hey there,

I'm not sure if this is the right channel to ask, so please point me in the right direction if there is a better place to send the information below 🙏

I'm one of the developers of the WooCommerce PayPal Here extension. One of our customers contacted us to report that every time they processed a payment using the PayPal Here app, it crashes right after the payment was completed.

Unfortunately, we have been unable to replicate the problem using our test devices. We were able to process orders without issues on a staging copy of the customer's website and when the customer tried to process an order on that site, the app crashed again.

The website logs show nothing that indicates that the app attempted to send the result of the operation back to the website, so we think something is happening on the app that triggers an error.

The customer shared a video showing one of their latest tests and we were able to see images of the error stack trace. I'm including those images below.

These are additional details about the crash that I was able to gather form the video:

Package name: com.paypal.here
Package version: 3935
Package version name: 3.7.5
Installed by: com.android.vending
Process name: com.paypal.here
SDK version: 25
Release: 7.1.1
Exception class name: java.lang.NullPointerException Source class: java.lang.String Source method: replace

The app was running on a Samsung tablet with model: SM-T560NU.

If I understand the stack trace correctly, there is a NullPointerException being thrown on the com.paypal.here.activities.thirdpartyintegration.ThirdPartyInvoice.createThirdPartyReturnUrl() method, when the app tries to call the replace() method on a String object, passing a null value as the replacement parameter.

Has anyone seen that error before? and do you know what could trigger it?

Screen Shot 2020-07-21 at 1 38 52 PM

Thanks!