{
final PAEContactMatrix cm = (PAEContactMatrix) av
.getContactMatrix(aa[selectedRow]);
- if (cm.getNewick()!=null && cm.getNewick().length()>0)
+ if (cm!=null && cm.getNewick()!=null && cm.getNewick().length()>0)
{
item = new JMenuItem("Show Tree for Matrix");
item.addActionListener(new ActionListener()
{
return false;
}
+ if (av==null||av.getAlignment()==null)
+ {
+ // alignment is closed
+ return false;
+ }
ColumnSelection cs = av.getColumnSelection();
+
HiddenColumns hc = av.getAlignment().getHiddenColumns();
int offp = (rseq != null) ? rseq.findIndex(rseq.getStart() + colm)
: colm;
Color col)
{
SequenceI rseq = tp.assocAnnotation.sequenceRef;
+ if (av==null||av.getAlignment()==null)
+ {
+ // alignment is closed
+ return;
+ }
+
for (BinaryNode bn:l)
{
int colm=-1;