From: gmungoc Date: Fri, 12 Feb 2016 16:51:14 +0000 (+0000) Subject: JAL-1705 take feature ID for description if nothing better found X-Git-Tag: Release_2_10_0~296^2~28 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ca5d8d9fcaa5ad7b7e495112e796ef1c109baabe;p=jalview.git JAL-1705 take feature ID for description if nothing better found --- diff --git a/src/jalview/io/gff/Gff3Helper.java b/src/jalview/io/gff/Gff3Helper.java index d29645b..bd34d3c 100644 --- a/src/jalview/io/gff/Gff3Helper.java +++ b/src/jalview/io/gff/Gff3Helper.java @@ -393,6 +393,15 @@ public class Gff3Helper extends GffHelperBase { desc = StringUtils.listToDelimitedString(attributes.get("Name"), ","); } + + /* + * if the above fails, try ID + */ + if (desc == null) + { + desc = (String) sf.getValue(ID); + } + return desc; } }