Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-983

IllegalArgumentException in FileBrowserSheet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1
    • Fix Version/s: 2.1, 2.0.5
    • Component/s: wtk-terra
    • Labels:
      None
    • Environment:
      Windows XP (but should affect all)

      Description

      In a File Browser sheet, while typing into the "Search" box but holding the mouse over the file list, I got this exception:
      java.lang.IllegalArgumentException: end (-1) < start (0)
      STACK TRACE:
      at org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:582)
      at org.apache.pivot.collections.ArrayList.get(ArrayList.java:347)
      at org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin$13.tooltipTriggered(TerraFileBrowserSkin.java:933)
      at org.apache.pivot.wtk.Component$ComponentTooltipListenerList.tooltipTriggered(Component.java:559)
      at org.apache.pivot.wtk.Component$1.run(Component.java:2693)
      at org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContext.java:1687)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
      at java.awt.EventQueue.access$300(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:699)
      at java.awt.EventQueue$3.run(EventQueue.java:697)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

        Activity

        Hide
        rwhitcomb Roger Whitcomb added a comment -

        A similar issues was already fixed in the VFS File Browser, so port that solution to the regular File Browser:
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraFileBrowserSkin.java
        Transmitting file data .
        Committed revision 1727931.

        Show
        rwhitcomb Roger Whitcomb added a comment - A similar issues was already fixed in the VFS File Browser, so port that solution to the regular File Browser: Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraFileBrowserSkin.java Transmitting file data . Committed revision 1727931.
        Hide
        rwhitcomb Roger Whitcomb added a comment -

        Merge the fix into branches/2.0.x:
        Sending .
        Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraFileBrowserSkin.java
        Transmitting file data .
        Committed revision 1727932.

        Show
        rwhitcomb Roger Whitcomb added a comment - Merge the fix into branches/2.0.x: Sending . Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraFileBrowserSkin.java Transmitting file data . Committed revision 1727932.

          People

          • Assignee:
            rwhitcomb Roger Whitcomb
            Reporter:
            rwhitcomb Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development