Groovy
  1. Groovy
  2. GROOVY-5257

Node.ReplaceNode method fails cannot remove itself

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.6, 2.0-beta-3
    • Component/s: XML Processing
    • Labels:
      None
    • Environment:
      ubuntu 11.04, eclipse 3.6, groovy eclipse plugin2.6.0.xx-20111212-0800-e36-RELEASE

      Description

      Perhaps this is not a frequent operation, but replaceNode method fails because of a nullpointer exception. The case corresponds to removing a root node from a xml document. This node has no parent (parent==null) and that is the point where the error is triggered. This may be considered a bad programming, but, anyway, the code should return something different from an exception.

        Activity

        Jorge Gomez created issue -
        Paul King made changes -
        Field Original Value New Value
        Assignee Paul King [ paulk ]
        Paul King made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.8.6 [ 18245 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0-beta-3 [ 18244 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734180 ] Default workflow, editable Closed status [ 12745795 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971516 ] Default workflow, editable Closed status [ 12979331 ]

          People

          • Assignee:
            Paul King
            Reporter:
            Jorge Gomez
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development