You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NullPointerException - Attempt to invoke interface method 'void com.braintreepayments.api.i2.a caused by VenmoClient.java:305
The listeners are null at that point, oddly it only happens for failure, it is very rare occasions, something is happening with the activity that we are losing the listeners, we also have set the listeners for paypal the same way, but we have no issue there. When looking into your codebase, we have found that paypal checks for the listener to not be null
Braintree SDK Version
4.33.0
Environment
Production
Android Version & Device
No response
Braintree dependencies
com.braintreepayments.api:paypal:4.33.0,
com.braintreepayments.api:venmo:4.33.0,
com.braintreepayments.api:data-collector:4.33.0,
Describe the bug
NullPointerException - Attempt to invoke interface method 'void com.braintreepayments.api.i2.a
caused byVenmoClient.java:305
The listeners are null at that point, oddly it only happens for failure, it is very rare occasions, something is happening with the activity that we are losing the listeners, we also have set the listeners for paypal the same way, but we have no issue there. When looking into your codebase, we have found that paypal checks for the listener to not be null
PaypalClient.java:155
while for Venmo there are no checks for the listener not being null,
VenmoClient.java:305
To reproduce
We couldn't reproduce, it has been happening in production.
Expected behavior
The fix for this is very simple, only call the listeners for the VenmoClient if they are not null.
Screenshots
No response
The text was updated successfully, but these errors were encountered: