Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jan 2010
    Posts
    24
    Vote Rating
    0
    SopGreg is on a distinguished road

      0  

    Default [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:

    Code:
    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
    I noticed in the SVN log that some prior checks to
    Code:
    e.getIndex == -1
    were removed in later versions, maybe this is the reason?

    regards

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2157

Similar Threads

  1. [FNR] ComboBox in IE 8
    By brunonandolpho in forum Ext GWT: Bugs (1.x)
    Replies: 11
    Last Post: 19 Jan 2012, 9:27 PM
  2. [CLOSED]ArrayIndexOutOfBoundsException on ColumnModel
    By mtarantini in forum Ext GWT: Bugs (2.x)
    Replies: 7
    Last Post: 30 Dec 2009, 1:43 AM
  3. ArrayIndexOutOfBoundsException: -1 with wrong AutoExpandColumn
    By Arno.Nyhm in forum Ext GWT: Discussion
    Replies: 10
    Last Post: 28 Aug 2009, 11:52 AM
  4. GRID ArrayIndexOutOfBoundsException
    By jfisher in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 9 Oct 2008, 4:38 PM

Thread Participants: 1