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

NullPointerExceptions in MockResourceResolver

    XMLWordPrintableJSON

Details

    • Patch

    Description

      The MockResourceResolver throws an exception when trying to access a resource outside of the root. The normal ResourceResolver implementation returns just null instead.

      Moreover, I get another NullPointerException in MockValueMap#convertForWrite if I try to create a MockResource with null properties (which is for example done in MergedResourceTest).

      Patch is attached.

      Attachments

        1. SLING-4626.patch
          4 kB
          Joel Richard

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              joelrich Joel Richard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: