diff --git a/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java b/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java index 52deeb04b..c9a80b3e9 100644 --- a/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java +++ b/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java @@ -485,8 +485,9 @@ public final int getReconnectCount() { @Override public final String toString() { int sops = 0; - if (getSk() != null && getSk().isValid()) { - sops = getSk().interestOps(); + final SelectionKey sk = getSk(); + if (sk != null && sk.isValid()) { + sops = sk.interestOps(); } int rsize = readQ.size() + (optimizedOp == null ? 0 : 1); int wsize = writeQ.size();