Orion-
21 May 2008, 6:52 AM
When I use a loader to show data in a table, it works fine. When I then use the same loader again to get other info to show in the same table, I get a NPE (see stack trace). This seems due to the fact that the item list is still from the previous data, and not the new one. I make this supposition due to the fact that the row variable in TableBinder.onSort still has the old value.
Thread [main] (Suspended (exception NullPointerException))
TableBinder<M>.onSort(StoreEvent) line: 167
StoreBinder$1.storeSort(StoreEvent) line: 68
StoreTypedListener.handleEvent(BaseEvent) line: 29
ListStore<M>(BaseObservable).fireEvent(int, BaseEvent) line: 75
ListStore<M>.applySort() line: 373
ListStore<M>.onLoad(LoadEvent) line: 154
ListStore$1.loaderLoad(LoadEvent) line: 130
LoadTypedListener.handleEvent(BaseEvent) line: 34
BaseListLoader<C,D>(BaseObservable).fireEvent(int, BaseEvent) line: 75
BaseListLoader<C,D>.onLoadSuccess(C, D) line: 124
BaseListLoader<C,D>.onLoadSuccess(Object, Object) line: 1
BaseLoader$1.onSuccess(D) line: 111
RpcProxy$1.onSuccess(Object) line: 33
RequestCallbackAdapter<T>.onResponseReceived(Request, Response) line: 210
Request.fireOnResponseReceivedImpl(RequestCallback) line: 254
Request.fireOnResponseReceivedAndCatch(GWT$UncaughtExceptionHandler, RequestCallback) line: 226
Request.fireOnResponseReceived(RequestCallback) line: 217
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
MethodAdaptor.invoke(Object, Object...) line: 103
MethodDispatch.invoke(int, int[], int) line: 80
OS._g_main_context_iteration(int, boolean) line: not available [native method]
OS.g_main_context_iteration(int, boolean) line: 1428
Display.readAndDispatch() line: 2840
GWTShell.pumpEventLoop() line: 745
GWTShell.run() line: 608
GWTShell.main(String[]) line: 375
Thread [main] (Suspended (exception NullPointerException))
TableBinder<M>.onSort(StoreEvent) line: 167
StoreBinder$1.storeSort(StoreEvent) line: 68
StoreTypedListener.handleEvent(BaseEvent) line: 29
ListStore<M>(BaseObservable).fireEvent(int, BaseEvent) line: 75
ListStore<M>.applySort() line: 373
ListStore<M>.onLoad(LoadEvent) line: 154
ListStore$1.loaderLoad(LoadEvent) line: 130
LoadTypedListener.handleEvent(BaseEvent) line: 34
BaseListLoader<C,D>(BaseObservable).fireEvent(int, BaseEvent) line: 75
BaseListLoader<C,D>.onLoadSuccess(C, D) line: 124
BaseListLoader<C,D>.onLoadSuccess(Object, Object) line: 1
BaseLoader$1.onSuccess(D) line: 111
RpcProxy$1.onSuccess(Object) line: 33
RequestCallbackAdapter<T>.onResponseReceived(Request, Response) line: 210
Request.fireOnResponseReceivedImpl(RequestCallback) line: 254
Request.fireOnResponseReceivedAndCatch(GWT$UncaughtExceptionHandler, RequestCallback) line: 226
Request.fireOnResponseReceived(RequestCallback) line: 217
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
MethodAdaptor.invoke(Object, Object...) line: 103
MethodDispatch.invoke(int, int[], int) line: 80
OS._g_main_context_iteration(int, boolean) line: not available [native method]
OS.g_main_context_iteration(int, boolean) line: 1428
Display.readAndDispatch() line: 2840
GWTShell.pumpEventLoop() line: 745
GWTShell.run() line: 608
GWTShell.main(String[]) line: 375