[MGNLUI-4282] AbstractJcrContainer#constructJCRQuery() throws null pointer when defaultOrder not set Created: 28/Aug/17 Updated: 08/Mar/21 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | workbench |
| Affects Version/s: | 5.5.6 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| 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(","); |