refs #7062
Change-Id: I13990a8db66408c1bc3cab6e4da8ba7997220c1a
// If the previously available node is not a parent of the specified
// node create a new node under the specified parent and set that
// as the node of the specified element.
- if (!node.getParent().equals(withParentNode)) {
+ if (!withParentNode.equals(node.getParent())) {
node = nodeId != null ? withParentNode.getOrCreateNode(nodeId, nodeClass) : withParentNode.addNode(nodeClass);
forElement.setHint(withNodeKey, node);
if (nodeCreationCallback != null)