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

[POST] Prevent NPE if no Session is available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Post 2.3.6
    • Servlets Post 2.3.8
    • Servlets
    • None

    Description

      If the request has no Session available, a NullPointerException is thrown on line 285 of the SlingPropertyValueHandler class since ResourceResolver.adaptTo(Session.class) returns null which is not checked. (There is a TODO comment already, sigh...)

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: