Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4265 Implementation of optional areas
  3. MAGNOLIA-4288

Optional Area with subareas triggers a NullPointerException

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Major
    • 4.5
    • None
    • templating
    • None

    Description

      When you set as "optional" an area containing subareas it triggers a NullPointerException.

      This error is triggered because even if the area is optional, the template script is evaluated.
      In the template script you can find call to the subareas [@cms.area name="TheSubArea"/] and as the parent area is optional, no content is created, then this call trigger a nullpointerException.

      A solution could be to not evaluate a script of an optional Area, like when you disable an area. But the difference is that the edit bar has to be created.

      Attachments

        Activity

          People

            fgrilli Federico Grilli
            sschmitt Samuel Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: