Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2594

Exception thrown if trying to create a sequence feature on gaps only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10.1
    • Fix Version/s: 2.10.2
    • Component/s: gui, jvlite
    • Labels:
      None

      Description

      If you try to create a sequence feature on a section of sequence with only gaps (which doesn't make any sense anyway) Jalview throws:

      Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      at java.util.ArrayList.get(ArrayList.java:429)
      at jalview.gui.FeatureRenderer.amendFeatures(FeatureRenderer.java:347)
      at jalview.gui.PopupMenu.sequenceFeature_actionPerformed(PopupMenu.java:1947)
      at jalview.gui.PopupMenu$28.actionPerformed(PopupMenu.java:1125)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              kmourao Kira MourĂ£o
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: