mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
NPE fix for my last commit
This commit is contained in:
parent
61f627eb85
commit
d9a02ed277
|
@ -634,7 +634,7 @@ public class HTTPClient {
|
|||
} catch (final IOException e) {
|
||||
ConnectionInfo.removeConnection(httpUriRequest.hashCode());
|
||||
httpUriRequest.abort();
|
||||
this.httpResponse.close();
|
||||
if (this.httpResponse != null) this.httpResponse.close();
|
||||
throw new IOException("Client can't execute: "
|
||||
+ (e.getCause() == null ? e.getMessage() : e.getCause().getMessage())
|
||||
+ " duration=" + Long.toString(System.currentTimeMillis() - time));
|
||||
|
|
Loading…
Reference in New Issue
Block a user