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)
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)