[MGNLUI-3833] NullPointerException in AbstractContentPresenterBase.onItemSelection Created: 29/Mar/16 Updated: 08/Mar/21 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | tree/list, workbench |
| Affects Version/s: | 5.4.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Cyle Ven Dawson | 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 DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| 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. |
| Comments |
| Comment by Roman Kovařík [ 08/Mar/21 ] |
|
Closing as M5.4 has reached EOL. https://docs.magnolia-cms.com/product-docs/Support/End-of-life-policy.html#_end_of_life |