Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.8
-
None
Description
When I create a page with 2 SSX objects, then delete the first object, it prevents the 2nd SSX object from being executed at runtime (throws a NullPointerException). The objects look like this:
Before deletion
XWiki.StyleSheetExtension[0] XWiki.StyleSheetExtension[1]
After deletion
XWiki.StyleSheetExtension[1]
This seems to be due to way com.xpn.xwiki.web.sx.SxDocumentSource.getContent() performs its loop (there's no check to see whether sxObj is null or not).