mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-15 14:36:51 +00:00
Avoid possible NPE warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79c90bd159
commit
2dea804f67
@ -310,7 +310,7 @@ public String toString() {
|
||||
*/
|
||||
public InetSocketAddress getServiceAddress() {
|
||||
final ServerSocket ssock = servicedSocket; // avoid synchronization
|
||||
Asserts.check(ssock != null, "Not running");
|
||||
Asserts.notNull(ssock, "Not running");
|
||||
return (InetSocketAddress) ssock.getLocalSocketAddress();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user