Chain might be null
authoramwaterhouse <Andrew Waterhouse>
Mon, 2 Apr 2007 11:21:35 +0000 (11:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 2 Apr 2007 11:21:35 +0000 (11:21 +0000)
src/jalview/gui/AppJMol.java

index bb14d77..3d24bc8 100644 (file)
@@ -810,7 +810,10 @@ public synchronized void addSequence(SequenceI [] seq)
 
     if (!atomsPicked.contains(picked))
     {
+      if(chainId!=null)
       viewer.evalString("select "+picked+";label %n %r:%c");
+    else
+      viewer.evalString("select "+picked+";label %n %r");
       atomsPicked.addElement(picked);
     }
     else