Task #3217

Mis à jour par Matthieu Decorde il y a plus de 3 ans

From LexicalTable:
<code>
Table lexicale de la partition VOEUX/locs, propriété @position...
** null.
java.lang.NullPointerException
at org.txm.searchengine.cqp.corpus.CQPLexicon.getLexicon(CQPLexicon.java:676)
at org.txm.lexicaltable.core.functions.LexicalTable._computeFromPartition(LexicalTable.java:197)
at org.txm.lexicaltable.core.functions.LexicalTable._compute(LexicalTable.java:370)
at org.txm.core.results.TXMResult.compute(TXMResult.java:2394)
at org.txm.core.results.TXMResult.compute(TXMResult.java:2282)
at org.txm.rcp.editors.TXMEditor$4.run(TXMEditor.java:1002)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
TXMEditor.compute(): LexicalTableEditor: computing failed.
</code>

then the editors fails with %%org.eclipse.core.runtime.AssertionFailedException: assertion failed: Column 3 has no label provider.%% errors

h3. to reproduce

From Index OR Concordance editor, select the (position) property
<code>
!ENTRY org.eclipse.ui 4 0 2022-02-04 14:33:28.114
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: org.txm.searchengine.cqp.corpus.PositionProperty cannot be cast to org.txm.searchengine.cqp.corpus.StructuralUnitProperty
at org.txm.rcp.swt.widget.PropertiesSelector.refresh(PropertiesSelector.java:172)
at org.txm.rcp.swt.widget.PropertiesSelector$1.widgetSelected(PropertiesSelector.java:120)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5797)
</code>

Retour