NPE guard

This commit is contained in:
Adrian Cole 2012-05-08 17:50:07 -07:00
parent d8472b799a
commit 5033b98252
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ public class TransientStorageStrategy {
}
public void removeBlob(final String containerName, final String blobName) {
containerToBlobs.get(containerName).remove(blobName);
if (containerToBlobs.containsKey(containerName))
containerToBlobs.get(containerName).remove(blobName);
}
public Iterable<String> getBlobKeysInsideContainer(final String containerName) {