PDA

View Full Version : [FIXED] NPE when leaving ThemeSelector or ComboBox by tab key



jraue
21 May 2008, 7:50 AM
Hi,

a bug that I am having since beta1 is a null-pointer exception when leaving a ThemeSelector or an object derived from a ComboBox by the tab button on the keyboard.

Any ideas?

Thanks,
Joachim


Stack Trace:

[ERROR] Client exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at com.extjs.gxt.ui.client.widget.form.ComboBox.onViewClick(ComboBox.java:642)
at com.extjs.gxt.ui.client.widget.form.ComboBox$3.onTab(ComboBox.java:531)
at com.extjs.gxt.ui.client.util.KeyNav.handleEvent(KeyNav.java:181)
at com.extjs.gxt.ui.client.util.KeyNav.handleEvent(KeyNav.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:75)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:448)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:658)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1306)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1285)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1253)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)

darrellmeyer
21 May 2008, 9:31 AM
The fix is in SVN. Also the current selection is now cleared in the list when the list is collapsed.