From d55521c4db0fb537c343a28ce2294abf021eea3a Mon Sep 17 00:00:00 2001 From: BobHanson Date: Thu, 28 May 2020 07:51:38 -0500 Subject: [PATCH] CR-JAL-220 JAL-3591 fixes for unlikely key value --- src/jalview/appletgui/SeqPanel.java | 5 +++-- src/jalview/gui/JDatabaseTree.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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]); } } } -- 1.7.10.2