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
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.
Can you please provide some complete testcase that shows the issue?
Noormally you should not return null, you should return an empty list. But i am unable to reproduce this.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.