There's an occasional NPE crash in TLSCertificatePinning.getCertInputStream()
This PR replaces TLSCertificatePinning.certInputStream with an explicit TLSCertificatePinning.createCertificateInputStream factory method
Looking to see if refactoring to Kotlin constant val helps resolve the issue by converting the certificate stream to a byte array only once–instead of once every time a certificate input stream is needed
Checklist
[x] Added a changelog entry
~- [ ] Relevant test coverage~
Authors
List GitHub usernames for everyone who contributed to this pull request.
Summary of changes
TLSCertificatePinning.getCertInputStream()
TLSCertificatePinning.certInputStream
with an explicitTLSCertificatePinning.createCertificateInputStream
factory methodval
helps resolve the issue by converting the certificate stream to a byte array only once–instead of once every time a certificate input stream is neededChecklist
Authors
@sshropshire