PDA

View Full Version : [FIXED] PagingToolBar.onLoad NullPointerException



slupix
31 Jul 2008, 6:32 AM
On GXT 1.0.1, in hosted mode and web mode, on windows xp....
There seem to be a bug in the method onLoad (line 410) because at the time of loading, the object hasn't been rendered yet (in my application it's in a TabItem that hasn't been opened yet).
A condition like "if (rendered)" could help, but you can see what's best to do.
Here's the exception's trace.
Thanks.

[ERROR] Uncaught exception escaped
java.lang.NullPointerException: null
at com.extjs.gxt.ui.client.widget.PagingToolBar.onLoad(PagingToolBar.java:410)
at com.extjs.gxt.ui.client.widget.PagingToolBar.handleEvent(PagingToolBar.java:320)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:88)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:1)
at com.extjs.gxt.ui.client.data.BaseLoader$1.onSuccess(BaseLoader.java:120)
at it.prometeo.sidplanner.client.mvc.VisiteProxy.load(VisiteProxy.java:86)
at it.prometeo.sidplanner.client.mvc.VisiteProxy.load(VisiteProxy.java:1)
at com.extjs.gxt.ui.client.data.BaseLoader.loadData(BaseLoader.java:127)
at com.extjs.gxt.ui.client.data.BaseLoader.load(BaseLoader.java:91)
at com.extjs.gxt.ui.client.data.BaseLoader.load(BaseLoader.java:85)
at com.extjs.gxt.ui.client.data.BasePagingLoader.load(BasePagingLoader.java:57)

darrellmeyer
2 Aug 2008, 10:44 AM
Fix is in SVN.