Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1144

DOMParentNode::insertBefore uses null pointer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • DOM
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 26919

    Description

      I am rearranging the existing child nodes of a parent node. Assume I have
      nodes A and B as children, with A being the first child. I then do "parent-
      >insertBefore( A, B ). This should be a no-op because A is already before B.

      What happens is that since A is already a child, it is removed. Then we end up
      in the "// this is an insert" section of the code. The check:
      if (refChild == fFirstChild)"

      Attachments

        Activity

          People

            Unassigned Unassigned
            lkitt@yahoo.com Louis Kittock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: