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

TemplatingFunctions loses repository exception due to NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 5.6.1
    • templating
    • None

      A call to TemplatingFunctions#nodeByPath() that fails due to an ACL placed on the requested node path results in a NullPointerException in TemplatingFunctions#handleRepositoryException(), because the current content node in the AggregationState can be null.

      NPE's aren't being catched, so the log.debug() call never gets executed an the original Exception is lost.

        Acceptance criteria

              Unassigned Unassigned
              rtenberge Ronald Ten Berge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD