Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      In ChildContext I get a NullPointerException, the error appears in method prepare()

      iterator = (startFromParentLocation ? parent.getParent() : parent).childIterator(nodeTest,
      reverse, startFromParentLocation ? parent : null);

      should be changed in my opinion to

      final NodePointer actualParent = startFromParentLocation ? parent.getParent() : parent;
      iterator = actualParent==null ? null : actualParent.childIterator(nodeTest,
      reverse, startFromParentLocation ? parent : null);

      The tests triggering the error are testIssue172_CountFollowingSiblingNode and testIssue172_CountPrecedingSiblingNode

        Activity

        Michele Vivoda made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Matt Benson made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 1.3 [ 12312253 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Michele Vivoda created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Michele Vivoda
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development