From 3359688d6af6b43207d96a218e600e4bc92fd145 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 27 Jun 2024 17:26:23 +0100 Subject: [PATCH] JAL-4411 handle Boolean from String when Jalview projects imported --- src/jalview/datamodel/PDBEntry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 1.7.10.2