PDA

View Full Version : Store.removeAll



ziman200
27 May 2009, 12:52 AM
com.extjs.gxt.ui.client.store.Store.removeAll(){

for (M m : all) { // if all eq null then throw NPE
unregisterModel(m);
}


all equal to null if the data is not able to display

sven
27 May 2009, 1:39 AM
Please provide a testcase in that all is set to null. Normally that should not happen.

ziman200
27 May 2009, 1:55 AM
If in RpcProxy.onSuccess result.list eq null then GXT remove all record and not create new. Next time you use an error occurs as described above.

sven
27 May 2009, 1:58 AM
Can you please provide some complete testcase that shows the issue?

sven
27 May 2009, 2:04 AM
Noormally you should not return null, you should return an empty list. But i am unable to reproduce this.