> -         return null;
> -      } 
> -      else {
> -         return new ContainerCDNMetadata(
> -            request.getEndpoint().getPath(), 
> -            Boolean.parseBoolean(cdnEnabled), 
> -            Boolean.parseBoolean(cdnLogRetention), 
> -            Long.parseLong(cdnTTL), 
> -            URI.create(cdnUri),
> -            URI.create(cdnSslUri),
> -            URI.create(cdnStreamingUri));
> -      }
> +      String cdnIosUri = 
> checkNotNull(from.getFirstHeaderOrNull(CloudFilesHeaders.CDN_IOS_URI), 
> CloudFilesHeaders.CDN_IOS_URI);
> +
> +      List<String> parts = 
> newArrayList(Splitter.on('/').split(request.getEndpoint().getPath()));
> +      checkArgument(!parts.isEmpty());

Add a message so the `IllegalArgumentException` gives some feedback?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/309/files#r10611222

Reply via email to