inFile might be null if PDB was pasted
authoramwaterhouse <Andrew Waterhouse>
Fri, 11 Aug 2006 08:21:39 +0000 (08:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 11 Aug 2006 08:21:39 +0000 (08:21 +0000)
src/MCview/PDBfile.java

index d197e31..3153e3c 100755 (executable)
@@ -115,7 +115,8 @@ public class PDBfile extends jalview.io.AlignFile {
 \r
          PDBEntry entry = new PDBEntry();\r
          entry.setId(id);\r
-         entry.setFile(inFile.getAbsolutePath());\r
+         if(inFile!=null)\r
+           entry.setFile(inFile.getAbsolutePath());\r
 \r
          seq.setDatasetSequence(dataset);\r
          dataset.addPDBId(entry);\r