Bug #1710

Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from a linked concordance

Ajouté par Matthieu Decorde il y a plus de 9 ans. Mis à jour il y a presque 6 ans.

Statut:Closed Début:02/03/2016
Priorité:Normal Echéance:
Assigné à:- % réalisé:

100%

Catégorie:Charts Temps passé: -
Version cible:TXM 0.8.2

Description

If someone remove lines from a concordance and press a point in the progression a stacktrace is thrown :

some missing lines:

Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:74)
    at org.txm.rcp.chartsengine.base.events.progression.ProgressionEventCallBack$2.run(ProgressionEventCallBack.java:319)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

empty concordance:

Caused by: java.lang.IndexOutOfBoundsException
    at org.txm.functions.concordances.Concordance.getLines(Concordance.java:408)
    at org.txm.functions.concordances.Concordance.indexOf(Concordance.java:1598)
    at org.txm.rcp.chartsengine.base.events.progression.ProgressionEventCallBack.updateLinkedConcordanceEditor(ProgressionEventCallBack.java:280)
    at org.txm.rcp.chartsengine.base.events.progression.ProgressionEventCallBack$1.run(ProgressionEventCallBack.java:114)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

Results

Historique

#1 Mis à jour par Sebastien Jacquot il y a plus de 9 ans

  • Sujet changé de RCP: X.X, progression to concordance link and concordance lines deleted à RCP: X.X, Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from the linked concordance
  • Catégorie mis à Charts
  • Statut changé de New à Feedback
  • % réalisé changé de 0 à 80

Temporary fix has been implemented. No more exception occurs but we need to find a better way to manage that, eg.:

  • disable the delete functionality in linked Concordance editor
  • or update the chart when some lines are deleted

#2 Mis à jour par Sebastien Jacquot il y a plus de 9 ans

  • Sujet changé de RCP: X.X, Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from the linked concordance à RCP: X.X, Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from a linked concordance

#3 Mis à jour par Sebastien Jacquot il y a plus de 9 ans

  • Sujet changé de RCP: X.X, Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from a linked concordance à Progression chart, IndexOutOfBoundsException exception when a selected chart point has been deleted from a linked concordance

#4 Mis à jour par Sebastien Jacquot il y a plus de 9 ans

  • Description mis à jour (diff)

#5 Mis à jour par Sebastien Jacquot il y a plus de 8 ans

  • Description mis à jour (diff)

#6 Mis à jour par Sebastien Jacquot il y a plus de 8 ans

  • Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)

Moved to 0.7.9, needs feedback.

#7 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#8 Mis à jour par Sebastien Jacquot il y a presque 7 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.8.2

#9 Mis à jour par Sebastien Jacquot il y a presque 6 ans

  • Statut changé de Feedback à Closed
  • % réalisé changé de 80 à 100

Formats disponibles : Atom PDF