[2.0 Trunk]: Index out of Bounds Exception in BaseTreeModel after calling add Method

Hi Dev-Team,

after using changing from M1 to the current trunk, we get an IndexOutOfBoundsException when adding a Model to a BaseTreeModel. The last change in rev 1442 of TreeStore regarding line 507 (add(parent, child, false); to insert(parent, child, ce.getIndex(), false); ) dosnt work. Any ideas for that?

Regards,
Mark

[ERROR] Uncaught exception escaped
java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
at java.util.ArrayList.add(Unknown Source)
at com.extjs.gxt.ui.client.data.BaseTreeModel.insert(BaseTreeModel.java:117)
at com.extjs.gxt.ui.client.store.TreeStore.doInsert(TreeStore.java:552)
at com.extjs.gxt.ui.client.store.TreeStore.insert(TreeStore.java:345)
at com.extjs.gxt.ui.client.store.TreeStore.insert(TreeStore.java:359)
at com.extjs.gxt.ui.client.store.TreeStore.onModelChange(TreeStore.java:507)
at com.extjs.gxt.ui.client.store.Store$1.modelChanged(Store.java:480)
at com.extjs.gxt.ui.client.data.ChangeEventSupport.notify(ChangeEventSupport.java:33)
at com.extjs.gxt.ui.client.data.BaseModel.notify(BaseModel.java:103)
at com.bearingpoint.davinci.frontend.gwt.client.mvc.model.BaseDaVinciTreeModel.notify(BaseDaVinciTreeModel.java:149)
at com.bearingpoint.davinci.frontend.gwt.client.mvc.model.BaseDaVinciTreeModel.insert(BaseDaVinciTreeModel.java:128)
at com.bearingpoint.davinci.frontend.gwt.client.mvc.model.BaseDaVinciTreeModel.add(BaseDaVinciTreeModel.java:64)

Start the code in Hosted mode and then expand "Parent 1". In the code you see, that I add two childs to "Parent 1", but they are not displayed after expand. Instead of these two children, the loaded child "Child 1" is dispayed. If you now press the test-button you will see the the java.lang.IndexOutOfBoundsException.

treeBinder.setAutoLoad(true); solves this problem, but sometimes it is not usefull.