jalview.ws.dbsources.Pdb pdbclient = new jalview.ws.dbsources.Pdb();
for (int pi = 0; pi < jmb.pdbentry.length; pi++)
{
- String file = new File(jmb.pdbentry[pi].getFile())
- .getAbsoluteFile().getPath();
- if (file == null)
+ String file = null;
+ if (jmb.pdbentry[pi].getFile()==null)
{
// retrieve the pdb and store it locally
AlignmentI pdbseq = null;
}
else
{
+ file = new File(jmb.pdbentry[pi].getFile())
+ .getAbsoluteFile().getPath();
if (curfiles != null && curfiles.length > 0)
{
addingStructures = true; // already files loaded.