You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Zack Shoylev (JIRA)" <ji...@apache.org> on 2015/04/02 20:53:54 UTC
[jira] [Created] (JCLOUDS-877) Creating a service without caching
or restrictions lists throws NPE
Zack Shoylev created JCLOUDS-877:
------------------------------------
Summary: Creating a service without caching or restrictions lists throws NPE
Key: JCLOUDS-877
URL: https://issues.apache.org/jira/browse/JCLOUDS-877
Project: jclouds
Issue Type: Bug
Components: jclouds-labs-openstack
Affects Versions: 1.9.0
Reporter: Zack Shoylev
Assignee: Zack Shoylev
Priority: Minor
Fix For: 1.9.1
``` 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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)