diff --git a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/blobstore/functions/PublicUriForObjectInfo.java b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/blobstore/functions/PublicUriForObjectInfo.java index 7492adcd8d..2291495664 100644 --- a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/blobstore/functions/PublicUriForObjectInfo.java +++ b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/blobstore/functions/PublicUriForObjectInfo.java @@ -54,6 +54,10 @@ public class PublicUriForObjectInfo implements Function { } catch (CacheLoader.InvalidCacheLoadException e) { // nulls not permitted from cache loader return null; + } catch (NullPointerException e) { + // nulls not permitted from cache loader + // TODO this shouldn't occur when the above exception is reliably presented + return null; } } } \ No newline at end of file