Details
-
Bug
-
Resolution: Fixed
-
Critical
-
9.5-rc-1
-
Unknown
-
N/A
-
N/A
-
Description
In this code
private void unRegisterObjectComponents(XWikiDocument document) { for (Map.Entry<DocumentReference, List<BaseObject>> entry : document.getXObjects().entrySet()) { WikiObjectComponentBuilder componentBuilder = getAssociatedComponentBuilder(entry.getKey()); if (componentBuilder != null) { for (BaseObject baseObject : entry.getValue()) { if (baseObject != null) { this.wikiObjectComponentManagerEventListenerProxy .unregisterObjectComponents(baseObject.getReference()); } } } } }
entry can be null if the component object is not at rank "0" which is possible.
In this case the component loading will stop and fail
Attachments
Issue Links
- is related to
-
XWIKI-14767 Deleting a wiki component xobject break the document
- Closed
-
XWIKI-14347 Add a way to register custom wiki components from XObjects
- Closed