Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.4.1, 1.7 M1
-
None
-
None
-
NPE XWikiDocument
-
Unit
-
Description
When adding an object to a document, the name of the object may not be set to the one of the document which may cause NPE.
XWikiDocument.addObject() and XWikiDocument.setObject() should set the name of the object to ensure proper naming.
This can happen when the object was not created by doc.newObject or doc.createObject, which do take care of this, but by BaseClass.newCustomClassInstance, for example.
Attachments
Issue Links
- blocks
-
XWIKI-2817 NPE during conversion of document to XML
- Closed
-
XWIKI-2818 NPE during conversion of object to XML
- Closed