diff --git a/src/main/java/net/spy/memcached/vbucket/ConfigurationProviderHTTP.java b/src/main/java/net/spy/memcached/vbucket/ConfigurationProviderHTTP.java
index <HASH>..<HASH> 100644
--- a/src/main/java/net/spy/memcached/vbucket/ConfigurationProviderHTTP.java
+++ b/src/main/java/net/spy/memcached/vbucket/ConfigurationProviderHTTP.java
@@ -266,7 +266,9 @@ public class ConfigurationProviderHTTP extends SpyObject implements Configuratio
 		}
 		return buffer.toString();
 	    } finally {
-	    reader.close();
+	    	if (reader != null) {
+	    		reader.close();
+	    	}
 	}
     }
Fixed issue regarding connecting to a non-existent bucket

Connecting to a Membase server correctly, but specifying a
bucket that doesn't exist causes the BufferedReader in the
readToString function to be null. This causes a NPE when we
attempt to close the reader.

Change-Id: I7f<I>c<I>b<I>b<I>bf<I>aded<I>b<I>a
Reviewed-on: <URL>