ignore any events after manager has already been finalized.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 5 Jul 2011 11:14:05 +0000 (12:14 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 5 Jul 2011 11:14:05 +0000 (12:14 +0100)
src/jalview/structure/StructureSelectionManager.java

index 32241a5..c4dda8b 100644 (file)
@@ -349,6 +349,11 @@ public class StructureSelectionManager
 
   public void mouseOverStructure(int pdbResNum, String chain, String pdbfile)
   {
+    if (listeners==null)
+    {
+      // old or prematurely sent event
+      return;
+    }
     boolean hasSequenceListeners = handlingVamsasMo || seqmappings != null;
     SearchResults results = null;
     SequenceI lastseq = null;