Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-877

Creating a service without caching or restrictions lists throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.1
    • Component/s: jclouds-labs-openstack
    • Labels:
      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)

        Attachments

          Activity

            People

            • Assignee:
              zack-s Zack Shoylev
              Reporter:
              zack-s Zack Shoylev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: