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

NPE in ValidationModelRetrieverImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Validation 1.0.0
    • Validation
    • None

    Description

      Due to the changes introduced with SLING-4876 there has been a potential NPE been introduced in the o.a.s.validation.impl.ValidationModelRetrieverImpl.
      The stack trace looks like this

      java.lang.NullPointerException: null
      	at org.apache.sling.validation.impl.model.MergedValidationModel.<init>(MergedValidationModel.java:60)
      	at org.apache.sling.validation.impl.ValidationModelRetrieverImpl.getModel(ValidationModelRetrieverImpl.java:121)
      	at org.apache.sling.validation.impl.ValidationModelRetrieverImpl.getModel(ValidationModelRetrieverImpl.java:94)
      	at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
      	at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:125)
      ...
      

      This happens whenever there is a model found for the requested resource type but not for one of its super resource types.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: