-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8.0-HF16, 5.9.4
-
Fix Version/s: 5.8.0-HF17, 5.9.5
-
Component/s: Layouts & Widgets
-
Tags:
-
Upgrade notes:
Some usecases have been reported where vocabulary entries have a parentId which does not exist in the same vocabulary.
It ends up with the following stacktrace:
Caused by: java.lang.NullPointerException at org.nuxeo.ecm.platform.ui.select2.automation.SuggestDirectoryEntries$JSONAdapter.<init>(SuggestDirectoryEntries.java:108) at org.nuxeo.ecm.platform.ui.select2.automation.SuggestDirectoryEntries$JSONAdapter.push(SuggestDirectoryEntries.java:307) at org.nuxeo.ecm.platform.ui.select2.automation.SuggestDirectoryEntries.run(SuggestDirectoryEntries.java:525)
This kind of vocabulary is not consistent but we can avoid an NPE on this case and allow to display such vocabulary entry as an orphan entry (like if the parentId was null).