Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3695

TenantProvider throws NPE when listing tenants root tenant resource does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Tenant 1.0.2
    • Tenant 1.1.0
    • Extensions

    Description

      The method
      org.apache.sling.tenant.TenantProvider#getTenants

      throws an NPE when the tenant root resource does not exists.
      The tenant root resource is created if needed when creating a tenant (see org.apache.sling.tenant.internal.TenantProviderImpl#createTenantResource)

      A workaround is to create a tenant and remove it.

      Attachments

        1. SLING-3695.patch
          7 kB
          Timothee Maret

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              marett Timothee Maret
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: