-
Notifications
You must be signed in to change notification settings - Fork 79
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
NullPointerException in TLSCertificatePinning.getCertInputStream #477
Comments
Hey @hankyjcheng thanks for using the Braintree SDK for Android and for filing this. Do you have any additional information about the environment in which the crash occurred e.g. Device Name, Device Manufacturer etc.? |
@sshropshire yeah it's happening on different major manufacturers like Samsung and Google. Here is a screen shot we have on Firebase Crashlytics. As you can see 96% occurred on Android 14. |
Even in other issues I see |
Finding the same crashes on Android 14 devices |
Braintree SDK Version
6.16.0
Environment
Production
Android Version & Device
No response
Braintree dependencies
com.braintreepayments.api:drop-in:6.16.0
com.braintreepayments.api:braintree-core:4.45.0
Describe the bug
This crash is captured on Firebase Crashlytics:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.nio.charset.Charset)' on a null object reference
at com.braintreepayments.api.TLSCertificatePinning.getCertInputStream(TLSCertificatePinning.java:719)
at com.braintreepayments.api.BraintreeGraphQLClient$Companion.createDefaultHttpClient(BraintreeGraphQLClient.java:82)
at com.braintreepayments.api.BraintreeGraphQLClient$Companion.access$createDefaultHttpClient(BraintreeGraphQLClient.java:79)
at com.braintreepayments.api.BraintreeGraphQLClient.(BraintreeGraphQLClient.kt:6)
at com.braintreepayments.api.BraintreeClientParams.(BraintreeClientParams.kt:13)
at com.braintreepayments.api.BraintreeClientParams.(BraintreeClientParams.kt:22)
at com.braintreepayments.api.BraintreeClient.(BraintreeClient.kt:70)
at com.braintreepayments.api.DropInClient.createDefaultParams(DropInClient.java:50)
at com.braintreepayments.api.DropInClient.(DropInClient.java:163)
To reproduce
not reproducible by dev
Expected behavior
Should not have a crash
Screenshots
No response
The text was updated successfully, but these errors were encountered: