Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.9.0
-
None
Description
``` URI serviceURI = serviceApi.create(
CreateService.builder()
.name("example_site22")
.domains(
ImmutableList.of(
Domain.builder().domain("http://www22.example.com").build()))
.origins(
ImmutableList.of(
Origin.builder().origin("http://example22.com").build()))
.flavorId(flavor.getId())
.build());
will throw NPE even though both caching/restriction lists are optional
Exception in thread "main" java.lang.NullPointerException
at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)
at org.jclouds.openstack.poppy.v1.domain.CreateService$Builder.build(CreateService.java:184)
at CDN.main(CDN.java:49)