From: Jim Procter Date: Thu, 27 Jun 2024 16:26:23 +0000 (+0100) Subject: JAL-4411 handle Boolean from String when Jalview projects imported X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3359688d6af6b43207d96a218e600e4bc92fd145;p=jalview.git JAL-4411 handle Boolean from String when Jalview projects imported --- diff --git a/src/jalview/datamodel/PDBEntry.java b/src/jalview/datamodel/PDBEntry.java index c3906f9..fb9e96a 100755 --- a/src/jalview/datamodel/PDBEntry.java +++ b/src/jalview/datamodel/PDBEntry.java @@ -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; }