nullpointer bug fix on consensus thread
[jalview.git] / src / jalview / gui / AppJmol.java
index ab03d10..5f1a70b 100644 (file)
@@ -33,6 +33,7 @@ import jalview.structure.*;
 import jalview.datamodel.PDBEntry;
 import jalview.io.*;
 import jalview.schemes.*;
+import jalview.ws.EBIFetchClient;
 
 import org.jmol.api.*;
 import org.jmol.adapter.smarter.SmarterJmolAdapter;
@@ -413,6 +414,7 @@ public synchronized void addSequence(SequenceI [] seq)
 
   public void seqColour_actionPerformed(ActionEvent actionEvent)
   {
+    lastCommand = null;
     colourBySequence = seqColour.isSelected();
     colourBySequence(ap.alignFrame.alignPanel);
   }