[MGNLUI-7106] Multivalue field in ContentEditor App fails with NPE - UI6 Created: 27/Apr/22 Updated: 19/Jul/22 Resolved: 16/May/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.18 |
| Fix Version/s: | 6.2.19 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Carlos Cantalapiedra | Assignee: | Roman Kovařík |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | cs-bk | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||
| Epic Link: | Nucleus Quality Maintenance | ||||||||||||||||||||||||||||||
| Sprint: | Nucleus 10 | ||||||||||||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||||||||
| Description |
| Comments |
| Comment by Roman Kovařík [ 27/Apr/22 ] |
|
Discovery completed: diff --git a/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/JcrPropertyProvider.java b/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/JcrPropertyProvider.java index 687690b5b8..260e96832a 100644 --- a/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/JcrPropertyProvider.java +++ b/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/JcrPropertyProvider.java @@ -80,7 +80,7 @@ public class JcrPropertyProvider implements ItemProviderStrategy<Property, Node> @Override public Optional<Property> read(Node reference, Locale locale) { return Optional.ofNullable(Exceptions.wrap().get(() -> { - String propertyName = this.definition.propertyName; + String propertyName = this.definition.getPropertyName(); if (!localeContext.getDefault().equals(locale)) { propertyName = i18NAuthoringSupport.deriveLocalisedPropertyName(this.definition.propertyName, locale); } A proxied definition has to accessed via a getter. |