alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 28 forks source link

Prevent NullReferenceException in OnFailureCallback #65

Closed kvpt closed 3 years ago

kvpt commented 4 years ago

I encountered a crash recently using the library. From the stacktrace, it's caused by an NRE in the OnFailure method of the OkTaskCallback.

I added null check in two places :

The changes are only in the OnFailure method. I tried to disable the git normalization line ending but it doesn't seem to work 🤷‍♂.

alexrainman commented 3 years ago

Merging in next release.

LucasRodriguez0302 commented 3 years ago

hey @alexrainman is there a plan on when this is going to be merged?

alexrainman commented 3 years ago

Couple of days. Working on a solution to support ECDSA.

LucasRodriguez0302 commented 3 years ago

Is it possible to have a version with just this null check?

kvpt commented 3 years ago

I made a custom version with the patch included. To use it rename the zip to nupkg (github limit the extensions allowed). modernhttpclient-updated.3.5.1.zip

LucasRodriguez0302 commented 3 years ago

hey @alexrainman me again, just checking if there's a plan for this update?

simader commented 3 years ago

Any news when the next release will be? Please merge this

JasonBro commented 3 years ago

Hi @alexrainman, I've just bumped into this problem as well and I can't see a nice easy way around it without this fix. Would it be possible to do a release of this, please?

Cheers

Jason

alexrainman commented 3 years ago

Releasing a new version this weekend.

JasonBro commented 3 years ago

Brilliant, @alexrainman - you're a star!

simader commented 3 years ago

Any news on that?

LucasRodriguez0302 commented 3 years ago

hey @alexrainman is there a plan to release this soon?

JasonBro commented 3 years ago

Hi @alexrainman - I don't think this has been released yet; NuGet is still on release 3.4.3 released on 10 December 2019. Will there be a release soon?