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:
Sebastian Bazley 2014-02-24 20:59:27 +00:00
parent 79c90bd159
commit 2dea804f67
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class LocalTestServer {
*/
public InetSocketAddress getServiceAddress() {
final ServerSocket ssock = servicedSocket; // avoid synchronization
Asserts.check(ssock != null, "Not running");
Asserts.notNull(ssock, "Not running");
return (InetSocketAddress) ssock.getLocalSocketAddress();
}