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

NewPropertyTask fails with NPE if nodePath does not exist

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD