According javadoc orderBefore method for a MoveableAmetysObjet should be handle a null parameter.
/** * Order a node before another sibling node (or as the last node) * @param siblingNode The node that will be the next sibling node of the current node. Must have the same parent as the current node. Can be null to set the current node as the last node. * @throws AmetysRepositoryException if an error occurs. */ public void orderBefore(AmetysObject siblingNode) throws AmetysRepositoryException;
If we call orderBefore with a null parameter on a DefaultPage, there is a NPE