JAL-4411 handle Boolean from String when Jalview projects imported
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 27 Jun 2024 16:26:23 +0000 (17:26 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 27 Jun 2024 16:26:23 +0000 (17:26 +0100)
src/jalview/datamodel/PDBEntry.java

index c3906f9..fb9e96a 100755 (executable)
@@ -515,7 +515,8 @@ public class PDBEntry
   {
     if (_hasProperty(AUTHORITATIVE_ID))
     {
-      return ((Boolean) getProperty(AUTHORITATIVE_ID));
+      Object authId = getProperty(AUTHORITATIVE_ID);
+      return (authId instanceof Boolean) ? (Boolean) authId : Boolean.valueOf(authId.toString());
     }
     return false;
   }