Closed GarageGadget closed 2 years ago
@steveisok @simonrozsival would you know if this is expected behavior?
Should we initialize this property with an empty collection?
@GarageGadget for now you can do this as a workaround?
handler.ClientCertificates ??= new ();
Hi @GarageGadget. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
We had a similar report from a different customer recently, here's the issue in Xamarin.Android: https://github.com/xamarin/xamarin-android/issues/7274
I suggest closing this issue as it's specific to Xamarin.Android.
Description
The application I am building requires the use of Client X509 certificates. I am trying to add the client certificate to the HttpClientHandler, however the ClientCertificate property is null and therefore throwing an null reference exception when calling the Add() method with a X509 certificate.
Snippet
Using Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.3.0 Preview 4.0
Steps to Reproduce
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 9
Did you find any workaround?
No response
Relevant log output
No response