From c7dc1213f00df820d3ab14c017777054d8b4c457 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 30 Apr 2012 13:13:54 -0700 Subject: [PATCH] Do not set member until we completely validate it --- .../org/jclouds/blobstore/options/ListContainerOptions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }