Open hankyjcheng opened 2 weeks ago
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.
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