import jalview.analysis.scoremodels.SimilarityParams;
import jalview.api.analysis.ScoreModelI;
import jalview.api.analysis.SimilarityParamsI;
+import jalview.datamodel.SequenceGroup;
import jalview.util.MessageManager;
import java.awt.BorderLayout;
title = title + " (" + af.getViewport().viewName + ")";
}
- Desktop.addInternalFrame(frame,
- title, width,
- height, false);
+ Desktop.addInternalFrame(frame, title, width, height, false);
calcChoicePanel.doLayout();
revalidate();
/*
* this check in in case this method gets exposed programmatically in future
*/
AlignViewport viewport = af.getViewport();
- if (viewport.getSelectionGroup().getSize() < MIN_TREE_SELECTION)
+ SequenceGroup sg = viewport.getSelectionGroup();
+ if (sg != null && sg.getSize() < MIN_TREE_SELECTION)
{
JvOptionPane
.showMessageDialog(