From 7f5e57f6067ac5c62df0d1cd2be021d37b0af7fd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 2 Sep 2016 02:43:25 -0400 Subject: [PATCH] Fix error in translator tester when only one translator is whitelisted --- .../content/zotero/tools/testTranslators/translatorTester.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index be87824b67..c2446e27a1 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -106,6 +106,9 @@ Zotero_TranslatorTesters = new function() { }; var runNextTester = function() { + if (!testers.length) { + return; + } testersRunning++; Zotero.debug("Testing "+testers[0].translator.label); testers.shift().runTests(testerDoneCallback);