mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
fix npe in url http client
This commit is contained in:
@@ -531,6 +531,12 @@ public class URLHttpClient implements HttpClient
|
|||||||
private HttpURLConnection openConnection(HttpRequest request, URL url)
|
private HttpURLConnection openConnection(HttpRequest request, URL url)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
|
if (request == null)
|
||||||
|
{
|
||||||
|
// TODO improve
|
||||||
|
request = new HttpRequest(url.toExternalForm());
|
||||||
|
}
|
||||||
|
|
||||||
HttpURLConnection connection = null;
|
HttpURLConnection connection = null;
|
||||||
|
|
||||||
if (!request.isIgnoreProxySettings() && configuration.isEnableProxy())
|
if (!request.isIgnoreProxySettings() && configuration.isEnableProxy())
|
||||||
|
|||||||
Reference in New Issue
Block a user