From 4238e699a8b78d09bafad06020c2937b15b683c5 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 5 Jul 2011 12:14:05 +0100 Subject: [PATCH] ignore any events after manager has already been finalized. --- src/jalview/structure/StructureSelectionManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index 32241a5..c4dda8b 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -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; -- 1.7.10.2