From 4faf17681ecb23497054f58147ea7201dfb4c031 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 8 Aug 2019 10:18:30 +0100 Subject: [PATCH] JAL-3402 suppress unmapped chains in View Chain menu --- src/jalview/gui/StructureViewerBase.java | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 1.7.10.2