-
16 Sep 2012 11:52 PM #1
GroupingView: NullPointerException
GroupingView: NullPointerException
Version(s) of Ext GWT
Ext GWT 3.0.1
Browser versions and OS
IE 9 Windows 7
Virtual Machine
No
Description
I'm getting an exception removing an element from a Grouping View, if the grouping column is null. Unfortunatelly I cannot replicate this behavior in my bug/test project by simply calling view.groupBy(null). I can't find the reason, why it's not working in my actual project, but this line is causing the NullPointerException: GroupingView.getGroupData() (373). Since you don't check, if groupingColumn == null (which you do in other methods), an exception is thrown. Here is the full stack trace:
Code:Caused by: java.lang.NullPointerException: null at com.sencha.gxt.widget.core.client.grid.GroupingView.getGroupData(GroupingView.java:373) at com.sencha.gxt.widget.core.client.grid.GroupSummaryView.refreshSummaries(GroupSummaryView.java:104) at com.sencha.gxt.widget.core.client.grid.GroupSummaryView.onRemove(GroupSummaryView.java:92) at com.sencha.gxt.widget.core.client.grid.GridView$10.onRemove(GridView.java:2009) at com.sencha.gxt.data.shared.event.StoreRemoveEvent.dispatch(StoreRemoveEvent.java:112) at com.sencha.gxt.data.shared.event.StoreRemoveEvent.dispatch(StoreRemoveEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.sencha.gxt.data.shared.Store.fireEvent(Store.java:609) at com.sencha.gxt.data.shared.ListStore.remove(ListStore.java:249) at com.sencha.gxt.data.shared.ListStore.remove(ListStore.java:263) at MYCODE - grid.getStore().remove(MYMODEL)
Run mode
Development Mode
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote