mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 19:15:24 +00:00
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 {
|
||||
return uriBuilders.get().uri(cdnContainer.getUnchecked(from.getContainer())).path(from.getName()).replaceQuery("")
|
||||
.build();
|
||||
} catch (NullPointerException e) {
|
||||
// nulls not permitted from cache loader
|
||||
return null;
|
||||
} catch (CacheLoader.InvalidCacheLoadException e) {
|
||||
// nulls not permitted from cache loader
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user