What steps will reproduce the problem?
1. getPreviousSibling in InMemoryTreeStateManager
previousSibling is never set.
Suggest adding previousSibling = child.getId();
as follows:
public synchronized T getPreviousSibling(final T id) {
final T parent = getParent(id);
final InMemoryTreeNode<T> parentNode = getNodeFromTreeOrThrowAllowRoot(parent);
T previousSibling = null;
for (final InMemoryTreeNode<T> child : parentNode.getChildren()) {
if (child.getId().equals(id)) {
return previousSibling;
}
//added this line
previousSibling = child.getId();
}
return null;
}
Original issue reported on code.google.com by mddavid...@gmail.com on 21 Aug 2012 at 9:43
Original issue reported on code.google.com by
mddavid...@gmail.com
on 21 Aug 2012 at 9:43