Bug #2457

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

Ajouté par Serge Heiden il y a presque 7 ans. Mis à jour il y a plus d'un an.

Statut:Closed Début:05/10/2018
Priorité:Normal Echéance:
Assigné à:- % réalisé:

100%

Catégorie:Import Temps passé: -
Version cible: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>

Historique

#1 Mis à jour par Matthieu Decorde il y a presque 7 ans

  • Sujet changé de RCP: 0.7.9, Transcriber import module: Pager broken on no word à RCP: 0.7.9, import modules: Pager broken on no word text
  • Description mis à jour (diff)
  • % réalisé changé de 0 à 80

#2 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • % réalisé changé de 80 à 100

#3 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Statut changé de New à Closed

Formats disponibles : Atom PDF