-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Calling avoidProxy with illegal URL throws NullPointerException #560
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
Comments
Another test against AsyncHttpProviderUtils.createUri that should fail early if this would fail later.
|
@scr I have the feeling that you're trying to fix something downstream instead of right on the spot. How did you got this in the first place? Did you try to build a request and set an invalid url? Or did this happen during a redirect chain where AHC built the request automatically? |
It's perfectly fine to have avoidProxy throw a NullPointerException when being passed a null hostname, that's exactly what NPE is about (although the message could be more explicit). I'll open another issue regarding passing an url without a hostname to RequestBuilder. |
Below is a patch to ProxyUtilsTest.java that shows a reduction of the issue.
The text was updated successfully, but these errors were encountered: