Details
Description
Steps to reproduce.
- Create a new page.
- Create a heading on the page, say, = Section = and save.
- Edit this section (not the whole page) and remove everything.
- Click 'Preview'.
Result (truncated):
Detailed information:
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:473)
...
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at com.xpn.xwiki.doc.XWikiDocument.getDocumentSection(XWikiDocument.java:7718)
at com.xpn.xwiki.web.EditAction.updateDocumentTitleAndContentFromRequest(EditAction.java:224)
at com.xpn.xwiki.web.EditAction.prepareEditedDocument(EditAction.java:96)
at com.xpn.xwiki.web.PreviewAction.render(PreviewAction.java:102)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:446)
... 75 more
Attachments
Issue Links
- relates to
-
XWIKI-16139 Uncaught exception when saving a deleted section
-
- Closed
-