JAL-1712 fixes/tests for Castor binding of EMBL XML / show flanking
[jalview.git] / src / jalview / datamodel / PDBEntry.java
index 98c78fc..36ffdf3 100755 (executable)
@@ -131,7 +131,7 @@ public class PDBEntry
   }
   public void setType(PDBEntry.Type type)
   {
-    this.type = type.toString();
+    this.type = type == null ? null : type.toString();
   }
 
   public String getType()