mirror of https://github.com/apache/jclouds.git
cloudfiles NPE when CDN not present
This commit is contained in:
parent
ef021720b1
commit
cc5aa5cee2
|
@ -52,6 +52,9 @@ public class PublicUriForObjectInfo implements Function<ObjectInfo, URI> {
|
||||||
try {
|
try {
|
||||||
return uriBuilders.get().uri(cdnContainer.getUnchecked(from.getContainer())).path(from.getName()).replaceQuery("")
|
return uriBuilders.get().uri(cdnContainer.getUnchecked(from.getContainer())).path(from.getName()).replaceQuery("")
|
||||||
.build();
|
.build();
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
// nulls not permitted from cache loader
|
||||||
|
return null;
|
||||||
} catch (CacheLoader.InvalidCacheLoadException e) {
|
} catch (CacheLoader.InvalidCacheLoadException e) {
|
||||||
// nulls not permitted from cache loader
|
// nulls not permitted from cache loader
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue