mirror of https://github.com/apache/jclouds.git
NPE guard
This commit is contained in:
parent
d8472b799a
commit
5033b98252
|
@ -79,7 +79,8 @@ public class TransientStorageStrategy {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeBlob(final String containerName, final String blobName) {
|
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) {
|
public Iterable<String> getBlobKeysInsideContainer(final String containerName) {
|
||||||
|
|
Loading…
Reference in New Issue