Bug #2457

Updated by Matthieu Decorde 12 months ago

If the source .trs file doesn't contain any word, the Pager stops with the following error:

<pre>
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)
</pre>

Here is a sample .trs content to re-produce the error:

<pre>
<?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>
</pre>

Back