git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0f304
)
JAL-3402 suppress unmapped chains in View Chain menu
feature/JAL-3400viewChainsMenu
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 8 Aug 2019 09:18:30 +0000
(10:18 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 8 Aug 2019 09:18:30 +0000
(10:18 +0100)
src/jalview/gui/StructureViewerBase.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/StructureViewerBase.java
b/src/jalview/gui/StructureViewerBase.java
index
853ecc1
..
e7e2967
100644
(file)
--- 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)
{