Actifsource

#6775 [Bug/Search] Exception after modify search result

Actifsource code generator for any programming language
Release: Actifsource V11.1.0

As soon as after a global actifsource search (Ctrl + H) the found results are modified, this exception can occur inside the search view:

java.lang.StringIndexOutOfBoundsException?: Invalid offset (21) or length (16)

    at org.eclipse.jface.viewers.StyledString?.setStyle(StyledString?.java:371)
    at ch.actifsource.ui.search.query.strategy.aspect.DefaultSearchStrategyAspect?.getStatementText(DefaultSearchStrategyAspect?.java:211)
    at ch.actifsource.ui.search.query.strategy.aspect.DefaultSearchStrategyAspect?$1.visit(DefaultSearchStrategyAspect?.java:175)
    at ch.actifsource.ui.search.query.strategy.aspect.DefaultSearchStrategyAspect?$1.visit(DefaultSearchStrategyAspect?.java:1)
    at ch.actifsource.ui.search.util.SelectSearchUtil?.visitElement(SelectSearchUtil?.java:359)
    at ch.actifsource.ui.search.query.strategy.aspect.DefaultSearchStrategyAspect?.getElementText(DefaultSearchStrategyAspect?.java:169)
    at ch.actifsource.ui.search.query.strategy.aspect.DefaultSearchStrategyAspect?$StatementSearchViewStrategy?.getTreeElementText(DefaultSearchStrategyAspect?.java:93)
    at ch.actifsource.ui.search.query.strategy.SearchStrategyHandler?.getTreeElementText(SearchStrategyHandler?.java:103)
    at ch.actifsource.ui.search.label.ElementLabelProvider?.getStyledText(ElementLabelProvider?.java:277)
    at org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider?.getStyledText(DelegatingStyledCellLabelProvider?.java:209)
    at org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider?.getStyledText(DecoratingStyledCellLabelProvider?.java:197)
    at org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider?.update(DelegatingStyledCellLabelProvider?.java:109)
    at org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider?.update(DecoratingStyledCellLabelProvider?.java:134)
    at org.eclipse.jface.viewers.ViewerColumn?.refresh(ViewerColumn?.java:144)
    at org.eclipse.jface.viewers.AbstractTreeViewer?.doUpdateItem(AbstractTreeViewer?.java:959)
    at org.eclipse.jface.viewers.AbstractTreeViewer?$UpdateItemSafeRunnable?.run(AbstractTreeViewer?.java:126)
    at org.eclipse.core.runtime.SafeRunner?.run(SafeRunner?.java:45)
    at org.eclipse.ui.internal.JFaceUtil$$Lambda$115/0000000000000000.run(Unknown Source)
    at org.eclipse.jface.util.SafeRunnable?.run(SafeRunnable?.java:174)
    at org.eclipse.jface.viewers.AbstractTreeViewer?.doUpdateItem(AbstractTreeViewer?.java:1037)
    at org.eclipse.jface.viewers.StructuredViewer?$UpdateItemSafeRunnable?.run(StructuredViewer?.java:427)
    at org.eclipse.core.runtime.SafeRunner?.run(SafeRunner?.java:45)
    at org.eclipse.ui.internal.JFaceUtil$$Lambda$115/0000000000000000.run(Unknown Source)
    at org.eclipse.jface.util.SafeRunnable?.run(SafeRunnable?.java:174)
    at org.eclipse.jface.viewers.StructuredViewer?.updateItem(StructuredViewer?.java:2111)
    at org.eclipse.jface.viewers.StructuredViewer?.internalUpdate(StructuredViewer?.java:2094)
    at org.eclipse.jface.viewers.StructuredViewer?.update(StructuredViewer?.java:2035)
    at org.eclipse.jface.viewers.ColumnViewer?.update(ColumnViewer?.java:545)
    at org.eclipse.jface.viewers.StructuredViewer?.update(StructuredViewer?.java:1979)
    at org.eclipse.jface.viewers.StructuredViewer?.handleLabelProviderChanged(StructuredViewer?.java:1158)
    at org.eclipse.jface.viewers.ContentViewer?$1.labelProviderChanged(ContentViewer?.java:95)
    at org.eclipse.jface.viewers.BaseLabelProvider?$1.run(BaseLabelProvider?.java:75)
    at org.eclipse.core.runtime.SafeRunner?.run(SafeRunner?.java:45)