From: BobHanson Date: Thu, 28 May 2020 12:51:38 +0000 (-0500) Subject: CR-JAL-220 JAL-3591 fixes for unlikely key value X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d55521c4db0fb537c343a28ce2294abf021eea3a;p=jalview.git CR-JAL-220 JAL-3591 fixes for unlikely key value --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 32f0abb..5570230 100644 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -820,8 +820,9 @@ public class SeqPanel extends Panel implements MouseMotionListener, { if (av.getAlignment().isNucleotide()) { - String base = ResidueProperties.nucleotideName.get(ch); - text.append(" Nucleotide: ").append(base == null ? ch : base); + String schar = "" + ch; + String base = ResidueProperties.nucleotideName.get(schar); + text.append(" Nucleotide: ").append(base == null ? schar : base); } else { diff --git a/src/jalview/gui/JDatabaseTree.java b/src/jalview/gui/JDatabaseTree.java index 8d62433..b05a609 100644 --- a/src/jalview/gui/JDatabaseTree.java +++ b/src/jalview/gui/JDatabaseTree.java @@ -122,7 +122,7 @@ public class JDatabaseTree extends JalviewDialog implements KeyListener { System.err.println("dupe ig for : " + dbs[i] + " \t" + dbp.getDbName() + " (" + dbp.getDbSource() + ")"); - source.remove(tn); + source.remove(dbs[i]); } } }