check that we have mappings before trying to broadcast mouseovers involving them
authorjprocter <Jim Procter>
Fri, 20 Aug 2010 12:31:33 +0000 (12:31 +0000)
committerjprocter <Jim Procter>
Fri, 20 Aug 2010 12:31:33 +0000 (12:31 +0000)
src/jalview/structure/StructureSelectionManager.java

index d2b336d..9797a20 100644 (file)
@@ -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