Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-557

NullPointerException when trying to replace a child without siblings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.11.2, 11.0.3
    • Fix Version/s: 11.1-rc-1, 10.11.3
    • Component/s: API
    • Labels:
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Calling

      {AbstractBlock#replaceChild}

      with a top level block as second argument and an empty new block might led to a NPE since it gets previous sibling and it's apparently not checked against null value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surli Simon Urli
                Reporter:
                surli Simon Urli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: