8000 OnFail not set will throw NullReferenceException by hucongquan · Pull Request #37 · j6mes/httplib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OnFail not set will throw NullReferenceException #37

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

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

hucongquan
Copy link

Hi @j6mes ,

When I use the following code, if the url is invalid and OnFail method is not called, it occured throw NullReferenceException.

   Http.Get("https://jthorne.co.uk/httplib")
   .OnSuccess(result =>
   {
       Console.Write(result);
   }).Go();

I try to resolve it and find the following way can do it.

I hope this is usefully.

Thanks.

@j6mes j6mes merged commit 5d2904c into j6mes:2.0.16 Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0