Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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-on: http://review.couchbase.org/17026
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • 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/OperationFuture.java
View
4 src/main/java/net/spy/memcached/internal/OperationFuture.java
@@ -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.