JAL-1016 Instruct user to report situations where the race condition still happens
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 7 Jul 2013 11:44:25 +0000 (12:44 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 7 Jul 2013 11:44:25 +0000 (12:44 +0100)
src/jalview/ext/jmol/JalviewJmolBinding.java

index db1162e..458a178 100644 (file)
@@ -403,8 +403,9 @@ public abstract class JalviewJmolBinding implements StructureListener,
         // RACE CONDITION - getMapping only returns Jmol loaded filenames once
         // Jmol callback has completed.
         if (mapping == null || mapping.length < 1)
-          continue;
-
+        {
+          throw new Error("Implementation error - Jmol seems to be still working on getting its data - report at http://issues.jalview.org/browse/JAL-1016");
+        }
         int lastPos = -1;
         for (int s = 0; s < sequence[pdbfnum].length; s++)
         {