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

Disable Create Sequence Features menu item when selection contains no residues

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.1, 2.10.2
    • Fix Version/s: None
    • Component/s: gui, sequencefeatures
    • Labels:
      None

      Description

      Jalview versions to date always allow the user to create features for the selected region. If that region is empty (ie contains only gaps), exceptions are raised:

      Exception in thread "AWT-EventQueue-2" java.lang.ArrayIndexOutOfBoundsException: 0
      at jalview.gui.FeatureRenderer.amendFeatures(FeatureRenderer.java:313)
      at jalview.gui.PopupMenu.sequenceFeature_actionPerformed(PopupMenu.java:2310)
      at jalview.gui.PopupMenu$29.actionPerformed(PopupMenu.java:1237)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprocter James Procter
              Reporter:
              jprocter James Procter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: