Bug #2457

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

Added by Serge Heiden almost 5 years ago. Updated almost 5 years ago.

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


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


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">
<Speaker id="spk1" name="S0" type="unknown" dialect="native" accent="" scope="global"/>
<Section type="report" startTime="0" endTime="61.970">
<Turn startTime="0.0" speaker="spk1" endTime="61.970">
<Sync time="0.0"/>



#1 Updated by Matthieu Decorde almost 5 years 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