From: jprocter Date: Tue, 5 Jul 2011 11:14:05 +0000 (+0100) Subject: ignore any events after manager has already been finalized. X-Git-Tag: Release_2_7~154 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4238e699a8b78d09bafad06020c2937b15b683c5;p=jalview.git ignore any events after manager has already been finalized. --- 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;