Bug #1150

Updated by Matthieu Decorde about 5 years ago

To reproduce the bug on any corpus, make an index of e.g. ab.* and then a concordance of a word with frequency=1. When trying to export the concordance, you get "java.lang.ArithmeticException: / by zero" :

Concordance de <"abaisser"> dans le corpus DISCOURS
Terminé : un résultat
right: 2113 len: 13

Effectué en 15 msec. (15 msec)
** Echec de l'exportation de la concordance : java.lang.ArithmeticException: / by zero
Export sauvegardé : /media/alavrent/data/Mes documents/bfm - local/Stagiaires et vacataires/Valeria Raiskina/test4.csv
Effectué en 13 sec. (13475 msec)

Tested on TXM 0.7.6 (Linux) and on Portal 0.6.1

h3. Solution

Bug due to a progression bar amount computation error (divide by 0)

h3. Validation test

* call concordance on DISCOURS with the following query:
* export the concordance

MD : **OK** Linux64