Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3833

NullPointerException in AbstractContentPresenterBase.onItemSelection

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4.4
    • Fix Version/s: None
    • Component/s: tree/list, workbench
    • Labels:
      None

      Description

      Line 134 in AbstractContentPresenterBase.java includes this statement:

      if (isMultipleSelection && rootItemId.equals(id))

      In the case that a custom content connector is provided and does not provide a default item, when multiple items are selected (such as in a TreeView in a browser SubApp), this code generates a NullPointerException, as rootItemId will always be null in that case. A check if rootItemId is not null should be added here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cylevendawson Cyle Ven Dawson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: