From d7d92760ce1d56690ad9a981b60dc32678734cb7 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 7 Jul 2013 12:44:25 +0100 Subject: [PATCH] JAL-1016 Instruct user to report situations where the race condition still happens --- src/jalview/ext/jmol/JalviewJmolBinding.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index db1162e..458a178 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -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++) { -- 1.7.10.2