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

CheckAndModifyPropertyValueTask throws NPE instead of logging an error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.15, 5.2.1
    • 4.5.14, 5.2
    • core
    • None

    Description

      This is due to usage of
      SessionUtil.getNode(workspaceName, nodePath) instead of jcrSession.getNode(nodePath). The former will return null in case of a PathNotFoundException leading to NPE in the subsequent method call, whereas the latter would throw an exception which is caught and logged to the user

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD