Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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