diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/MyList.java b/app/src/main/java/ch/nuth/zhaw/exbox/MyList.java index 1ce3e6e..88f6a86 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/MyList.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/MyList.java @@ -198,7 +198,7 @@ public class MyList extends AbstractList { * The item to insert. */ protected void insertAfter(IListNode node, Object item) { - IListNode newNode = new ListNode(item, node, node.getNextNode()); + IListNode newNode = new ListNode(item, node.getNextNode(), node); node.setNextNode(newNode); newNode.getNextNode().setPreviousNode(newNode); }