diff --git a/blobstore/src/main/java/org/jclouds/blobstore/options/ListContainerOptions.java b/blobstore/src/main/java/org/jclouds/blobstore/options/ListContainerOptions.java index 8b42bea841..ab84be050b 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/options/ListContainerOptions.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/options/ListContainerOptions.java @@ -140,8 +140,9 @@ public class ListContainerOptions extends ListOptions implements Cloneable { * */ public ListContainerOptions inDirectory(String dir) { - this.dir = checkNotNull(dir, "dir"); + checkNotNull(dir, "dir"); checkArgument(!dir.equals("/"), "dir must not be a slash"); + this.dir = dir; return this; }