Hybrid View
-
23 Jul 2010 1:50 AM #1
[FNR] [2.2.0 Beta] ListViewSelectionModel - ArrayIndexOutOfBoundsException (-1)
[FNR] [2.2.0 Beta] ListViewSelectionModel - ArrayIndexOutOfBoundsException (-1)
Hi everyone,
I discovered a bug in 2.2.0-beta which we did not experience with 2.1.3:
Clicking outside of a list view item in a ListView (e.g. below the last item) results in a mouse click event with the index -1, which does not get handled correctly by the ListViewSelectionModel:
I noticed in the SVN log that some prior checks toCode:ArrayList<E>.get(int) line: 324 CompositeElement.getElement(int) line: 128 ListView<M>.focusItem(int) line: 601 ListViewSelectionModel<M>.handleMouseDown(ListViewEvent<M>) line: 144 ListViewSelectionModel<M>.handleEvent(ListViewEvent<M>) line: 85 ListViewSelectionModel<M>.handleEvent(BaseEvent) line: 1 BaseObservable.callListener(Listener<BaseEvent>, BaseEvent) line: 178 BaseObservable.fireEvent(EventType, BaseEvent) line: 86 ListView<M>(Component).fireEvent(EventType, ComponentEvent) line: 454 ListView<M>(Component).onBrowserEvent(Event) line: 866 DOM.dispatchEventImpl(Event, Element, EventListener) line: 1307 DOM.dispatchEvent(Event, Element, EventListener) line: 1263 GeneratedMethodAccessor155.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 MethodAdaptor.invoke(Object, Object...) line: 103 MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 OophmSessionHandler.invoke(BrowserChannel, BrowserChannel$Value, int, BrowserChannel$Value[]) line: 157 BrowserChannelServer(BrowserChannel).reactToMessagesWhileWaitingForReturn(BrowserChannel$SessionHandler) line: 1714 BrowserChannelServer.invokeJavascript(CompilingClassLoader, JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 165 ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line: 120
were removed in later versions, maybe this is the reason?Code:e.getIndex == -1
regards
-
23 Jul 2010 2:10 AM #2
Fixed in SVN as of revision 2157
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] ComboBox in IE 8
By brunonandolpho in forum Ext GWT: Bugs (1.x)Replies: 11Last Post: 19 Jan 2012, 9:27 PM -
[CLOSED]ArrayIndexOutOfBoundsException on ColumnModel
By mtarantini in forum Ext GWT: Bugs (2.x)Replies: 7Last Post: 30 Dec 2009, 1:43 AM -
ArrayIndexOutOfBoundsException: -1 with wrong AutoExpandColumn
By Arno.Nyhm in forum Ext GWT: DiscussionReplies: 10Last Post: 28 Aug 2009, 11:52 AM -
GRID ArrayIndexOutOfBoundsException
By jfisher in forum Ext GWT: Bugs (1.x)Replies: 2Last Post: 9 Oct 2008, 4:38 PM


Reply With Quote