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

Creating a service without caching or restrictions lists throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1
    • jclouds-labs-openstack
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: