From: gmungoc Date: Thu, 8 Aug 2019 09:18:30 +0000 (+0100) Subject: JAL-3402 suppress unmapped chains in View Chain menu X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2FJAL-3400viewChainsMenu;p=jalview.git JAL-3402 suppress unmapped chains in View Chain menu --- diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index 853ecc1..e7e2967 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -549,6 +549,10 @@ public abstract class StructureViewerBase extends GStructureViewer for (String chain : chainNames) { String seqName = getSequenceNameForChain(chain); + if (seqName == null) + { + continue; + } int nameLength = seqName.length(); if (nameLength > 16) {