@BeforeTest(alwaysRun = true)
public static void clearDesktop()
{
- Desktop.instance.closeAll_actionPerformed(null);
+ if (Desktop.instance != null && Desktop.getAlignFrames() != null)
+ {
+ Desktop.instance.closeAll_actionPerformed(null);
+ }
}
public int countDsAnn(jalview.viewmodel.AlignmentViewport avp)