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

CheckAndModifyPropertyValueTask throws NPE instead of logging an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.14, 5.2
    • Fix Version/s: 4.5.15, 5.2.1
    • Component/s: core
    • Labels:
      None
    • Magnolia Release:
      4.5.15, 5.2.1

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: