mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +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)
|
||||
throws IOException
|
||||
{
|
||||
if (request == null)
|
||||
{
|
||||
// TODO improve
|
||||
request = new HttpRequest(url.toExternalForm());
|
||||
}
|
||||
|
||||
HttpURLConnection connection = null;
|
||||
|
||||
if (!request.isIgnoreProxySettings() && configuration.isEnableProxy())
|
||||
|
||||
Reference in New Issue
Block a user