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/22 03:42:59 UTC

[jira] [Commented] (JCLOUDS-877) Creating a service without caching or restrictions lists throws NPE

    [ https://issues.apache.org/jira/browse/JCLOUDS-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14506226#comment-14506226 ] 

Zack Shoylev commented on JCLOUDS-877:
--------------------------------------

https://github.com/jclouds/jclouds-labs-openstack/pull/189

> 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)