Bug #2457

RCP: 0.7.9, import modules: Pager broken on no word text

Added by Serge Heiden 8 months ago. Updated 7 months ago.

Status:New Start date:10/05/2018
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Import Spent time: -
Target version:TXM 0.8.0

Description

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>

History

#1 Updated by Matthieu Decorde 7 months ago

  • Subject changed from RCP: 0.7.9, Transcriber import module: Pager broken on no word to RCP: 0.7.9, import modules: Pager broken on no word text
  • Description updated (diff)
  • % Done changed from 0 to 80

Also available in: Atom PDF