Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5704

NewPropertyTask fails with NPE if nodePath does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.2.6, 5.3
    • 5.2.2
    • core

    Description

      This is due to the usage of SessionUtil.getNode(..) instead of using directly the jcr session. The latter would throw a PathNotFoundException which would be caught and reported to the user, the former returns null which is subsequently passed the newProperty(..) method which then fails badly with NPE.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ochytil Ondrej Chytil
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD