JAL-3402 suppress unmapped chains in View Chain menu feature/JAL-3400viewChainsMenu
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 8 Aug 2019 09:18:30 +0000 (10:18 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 8 Aug 2019 09:18:30 +0000 (10:18 +0100)
src/jalview/gui/StructureViewerBase.java

index 853ecc1..e7e2967 100644 (file)
@@ -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)
       {