eragon7649 / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Exception when rebuild tree #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.After invoke TreeBuilder.clear
2.using sequentiallyAddNextNode and so on to build another tree.
3.get NodeNotInTreeException

I trace the code,found the bug,here is the path,
that is ,just reset lastAddedId  to null in TreeBuilder.clear().

pl.polidea.treeview.TreeBuilder

    public void clear() {
        manager.clear();
+       lastAddedId = null;
    }

Original issue reported on code.google.com by yunjie....@gmail.com on 7 Sep 2013 at 4:48

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by ja...@potiuk.com on 8 Sep 2013 at 12:33