From: jprocter Date: Fri, 20 Aug 2010 12:31:33 +0000 (+0000) Subject: check that we have mappings before trying to broadcast mouseovers involving them X-Git-Tag: Release_2_6~104 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a7fe8d0fa8a37d31c729a05663a9386f479b3c91;p=jalview.git check that we have mappings before trying to broadcast mouseovers involving them --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index d2b336d..9797a20 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -343,7 +343,10 @@ public class StructureSelectionManager if (listeners.elementAt(i) instanceof StructureListener) { sl = (StructureListener) listeners.elementAt(i); - + if (mappings==null) + { + continue; + } for (int j = 0; j < mappings.length; j++) { if (mappings[j].sequence == seq