// AlignmentOrder origorder = new AlignmentOrder(alAndColsel[0]);
Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);
- Alignment dataset = av.getAlignment().getDataset();
+ Alignment dataset = (av!=null && av.getAlignment()!=null) ? av.getAlignment().getDataset() : null;
if (dataset != null)
{
al.setDataset(dataset);
// but this may fail if the view was closed...
gc = av.
getGapCharacter();
+
} catch (Exception ex) {};
Object[] alAndColsel = tree.seqData.getAlignmentAndColumnSelection(gc);
// AlignmentOrder origorder = new AlignmentOrder(alAndColsel[0]);
Alignment al = new Alignment( (SequenceI[]) alAndColsel[0]);
- Alignment dataset = av.getAlignment().getDataset();
+ Alignment dataset = (av!=null && av.getAlignment()!=null) ? av.getAlignment().getDataset() : null;
if (dataset != null)
{
al.setDataset(dataset);