@Override
public boolean isViewerRunning()
{
- return chimeraManager.isChimeraLaunched();
+ return chimeraManager!=null && chimeraManager.isChimeraLaunched();
}
/**
Console.error("Couldn't open Chimera viewer!", ex);
}
}
+ if (!jmb.isViewerRunning())
+ {
+ // nothing to do
+ // TODO: ensure we tidy up JAL-3619
+ return;
+ }
int num = -1;
for (PDBEntry pe : filePDB)
{
@Override
public boolean isViewerRunning()
{
- return pymolManager.isPymolLaunched();
+ return pymolManager !=null && pymolManager.isPymolLaunched();
}
@Override
return;
}
}
+ if (!binding.isViewerRunning())
+ {
+ // nothing to do
+ // TODO: ensure we tidy up JAL-3619
+
+ return;
+ }
+
int num = -1;
for (PDBEntry pe : filePDB)
{
} catch (Exception ex)
{
Console.error(
- "Couldn't open " + pe.getFile() + " in Chimera viewer!",
+ "Couldn't open " + pe.getFile() + " in "+getViewerName()+"!",
ex);
} finally
{