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

When SuggestionPopup data changes and an item beyond the new length was highlighted, an IndexOutOfBounds is thrown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.0.5
    • Fix Version/s: 2.1
    • Component/s: wtk-terra
    • Labels:
      None

      Description

      One way to reproduce is to have a long SuggestionPopup list of suggestions, then move the mouse to a selection down in the list, so it is highlighted, then type something in the attached TextInput so that the list is shorter, then move the mouse out of the suggestion list:  an IndexOutOfBoundsException will be thrown with the error being the old "highlightIndex" of TerraListViewSkin being out of range of the new list data length.

      Appears to only happen if "variableItemHeight" is set true, which is the default for the ListView created by TerraSuggestionPopupSkin.

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: