Bug #264

RCP: 0.7.2, Concordances, right context sorting raises exception

Ajouté par Sebastien Jacquot il y a plus de 4 ans.

Statut:New Début:12/07/2013
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:UI / Interaction Temps passé: -
Version cible:TXM X.X

Description

Reproduction steps :
- compute concordances on VOEUX corpus with '.*' CQL query
- click on right context header

Log :

** Une erreur est survenue lors du chargement des lignes de la concordance : java.lang.NullPointerException
java.lang.NullPointerException
    at java.text.RuleBasedCollator.compare(RuleBasedCollator.java:351)
    at org.txm.functions.concordances.comparators.LexicographicRightContextComparator.compare(LexicographicRightContextComparator.java:80)
    at org.txm.functions.concordances.comparators.LexicographicRightContextComparator.compare(LexicographicRightContextComparator.java:1)
    at java.util.TimSort.binarySort(TimSort.java:265)
    at java.util.TimSort.sort(TimSort.java:208)
    at java.util.TimSort.sort(TimSort.java:173)
    at java.util.Arrays.sort(Arrays.java:659)
    at java.util.Collections.sort(Collections.java:217)
    at org.txm.functions.concordances.Concordance.sort(Concordance.java:633)
    at org.txm.rcpapplication.editors.concordances.ConcordancesEditor$9.run(ConcordancesEditor.java:786)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

It appears that vals1 can be null line 79 of org.txm.functions.concordances.comparators.LexicographicRightContextComparator.compare() :

rez = collator.compare(vals1.get(j), vals2.get(j));

Formats disponibles : Atom PDF