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

AbstractJcrContainer#constructJCRQuery() throws null pointer when defaultOrder not set

    Details

    • Type: Task
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 5.5.6
    • Fix Version/s: None
    • Component/s: workbench
    • Labels:
      None

      Description

      The defaultOrder must be set. In the case where it is not set AbstractJcrContainer#constructJCRQuery() can throw a null pointer.

      if (considerSorting) {
          if (sorters.isEmpty()) {
              // no sorters set - use defaultOrder (always ascending)
             String defaultOrder = contentConnectorDefinition.getDefaultOrder();
             String[] defaultOrders = defaultOrder.split(",");
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rgange Richard Gange
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: