issue 38 - Dragging item in treeview past end of branch crashes
MODIFY
builder/src/main/java/builder/views/TreeView.java
builder/src/main/java/builder/views/TreeView.java
@@ -516,7 +516,8 @@ public class TreeView extends JInternalFrame implements iSubscriber {
// do not allow drop past end of branch
int childIndex = dropLocation.getChildIndex();
int parentIndex = parentNode.getChildCount();
- if (parentIndex == childIndex) return false;
+
+ if (childIndex+1 >= parentIndex) return false;
DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
TreePath dropPath = new TreePath(selectedNode.getPath());

issue 38 - Dragging item in treeview past end of branch crashes