/**\r
* Construct an alignmentView from a live jalview alignment view. Note -\r
* hidden rows will be excluded from alignmentView\r
- * \r
+ * Note: JAL-1179\r
* @param alignment\r
* - alignment as referenced by an AlignViewport\r
* @param columnSelection\r
// and record non-empty groups in group list.\r
// record / sub-select selected region on the alignment view\r
SequenceI[] selseqs;\r
- if (selection != null)\r
+ if (selection != null && selection.getSize()>0)\r
{\r
List<SequenceI> sel = selection.getSequences(null);\r
this.selected = new Vector();\r
{\r
if (selseqs[i] != null)\r
{\r
- if (selection != null && !selectedRegionOnly)\r
+ if (selection != null && selection.getSize()>0 && !selectedRegionOnly)\r
{\r
sequences[csi].setGroupMembership(selected);\r
selected.addElement(sequences[csi]);\r