jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zack Shoylev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-877) Creating a service without caching or restrictions lists throws NPE
Date Thu, 02 Apr 2015 18:53:54 GMT
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)

Mime
View raw message