Merge branch 'features/JAL-1541_BioJsMSA' into develop
[jalview.git] / src / jalview / datamodel / PDBEntry.java
index 0050666..36ffdf3 100755 (executable)
@@ -94,7 +94,7 @@ public class PDBEntry
   {
     this.id = pdbId;
     this.chainCode = chain;
-    this.type = type.toString();
+    this.type = type == null ? null : type.toString();
     this.file = filePath;
   }
 
@@ -125,9 +125,13 @@ public class PDBEntry
     return file;
   }
 
+  public void setType(String t)
+  {
+    this.type = t;
+  }
   public void setType(PDBEntry.Type type)
   {
-    this.type = type.toString();
+    this.type = type == null ? null : type.toString();
   }
 
   public String getType()