Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23142

Rendering error is not clear when inserting a wrong Root parameter in Children Macro and Page Tree Macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.10.6, 17.3.0-rc-1
    • None
    • Windows 11 Pro, Firefox 137, using an instance of XWiki 16.10.6 on PostgreSQL 17, Tomcat 9.0.104
    • Unknown

    Description

      Steps to reproduce

      1. Edit the Sandbox.WebHome page in WYSIWYG mode
      2. Click on Insert > Other Macros > Children
      3. Click 'Select'
      4. Insert a Root parameter, likeĀ xwiki:Sandbox
      5. Click 'Submit'

      Expected results

      The macro is inserted with the children being displayed. No errors occur in the logs.

      Actual results

      The following error is displayed in XWiki console:

      2025-04-28 19:04:16,501 [http-nio-1115-exec-2 - http://localhost:1115/xwiki/bin/get/Sandbox/WebHome?] ERROR o.a.v.rendering                - Left side ($childNodeIds.size()) of comparison operation has null value at xwiki:XWiki.DocumentTreeMacros[line 179, column 29]

      No pages are displayed on the macro.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: