if (waiting)
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"Timed out waiting for structure viewer to load file "
+ notLoaded);
return false;
}
List<StructureCommandI> finalView = commandGenerator
.centerViewOn(models);
- executeCommands(finalView, false, "Centered on Superposition");
+ if (finalView != null && finalView.size() > 0)
+ {
+ executeCommands(finalView, false, "Centered on Superposition");
+ }
}
return error;
}