Index: branches/ehcache-2.7.x/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/async/AsyncCoordinatorImpl.java =================================================================== diff -u -N -r8317 -r8707 --- branches/ehcache-2.7.x/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/async/AsyncCoordinatorImpl.java (.../AsyncCoordinatorImpl.java) (revision 8317) +++ branches/ehcache-2.7.x/terracotta/bootstrap/src/main/java/org/terracotta/modules/ehcache/async/AsyncCoordinatorImpl.java (.../AsyncCoordinatorImpl.java) (revision 8707) @@ -463,10 +463,12 @@ commonAsyncLock.lock(); try { Set buckets = nodeToBucketNames.get(nodeName); - boolean removed = buckets.remove(bucketName); - nodeToBucketNames.put(nodeName, buckets); - debug("removeBucket " + bucketName + " " + removed + " remaining deadNodes " - + nodeToBucketNames.get(DEAD_NODES)); + if (buckets != null) { + boolean removed = buckets.remove(bucketName); + nodeToBucketNames.put(nodeName, buckets); + debug("removeBucket " + bucketName + " " + removed + " remaining deadNodes " + + nodeToBucketNames.get(DEAD_NODES)); + } } finally { commonAsyncLock.unlock(); }