RCP: 0.7.9, import modules: Pager broken on no word text
If the source file doesn’t contain any word, the Pager stops with the following error:
Paginating texts:
..java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at java_util_List$get$1.call(Unknown Source)
at org.txm.importer.transcriber.transcriberLoader.run(transcriberLoader.groovy:285)
at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Importation terminée : 32 sec (32061 ms)
Here is a sample .trs content to re-produce the error:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Trans SYSTEM "trans-14.dtd">
<Trans>
<Speakers>
<Speaker id="spk1" name="S0" type="unknown" dialect="native" accent="" scope="global"/>
</Speakers>
<Episode>
<Section type="report" startTime="0" endTime="61.970">
<Turn startTime="0.0" speaker="spk1" endTime="61.970">
<Sync time="0.0"/>
</Turn>
</Section>
</Episode>
</Trans>
(from redmine: issue id 2457, created on 2018/10/05 by Serge Heiden)