Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Check if op is null before asserting in OperationFuture

On another note, the change Matt put in that added this causes
two other test failures that I didn't have time to fix. I should
have run make test before pushing his change.

Change-Id: I8bc580f3305191521949a28ce70bca0da8b24d2b
Reviewed-by: Matt Ingenthron <>
Tested-by: Michael Wiederhold <>
  • Loading branch information...
commit cead32ee3601a166aa5c473ed41d483a8bd88718 1 parent 3c03623
@mikewied mikewied authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/net/spy/memcached/internal/
4 src/main/java/net/spy/memcached/internal/
@@ -172,7 +172,9 @@ public T get(long duration, TimeUnit units) throws InterruptedException,
"Operation timed out.", op));
- assert op.getState() == OperationState.COMPLETE;
+ if (op != null) {
+ assert op.getState() == OperationState.COMPLETE;
+ }
return objRef.get();
Please sign in to comment.
Something went wrong with that request. Please try again.