Actifsource

#6777 [Bug/TplEd] Exception if the context selection changes

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

This exception occurs as soon as the context selection changes:

Message: root: null->Template->TopContext?(0)->SuperContext?(0)->Selector(1) message: null->Template->TopContext?(0)->SuperContext?(0)->MultiFileContext?(0)->FileContext?(1)->LineContext?(5)->Selector(1)->Variable(0)
ch.actifsource.util.AssertionFailure?: root: null->Template->TopContext?(0)->SuperContext?(0)->Selector(1) message: null->Template->TopContext?(0)->SuperContext?(0)->MultiFileContext?(0)->FileContext?(1)->LineContext?(5)->Selector(1)->Variable(0)

    at ch.actifsource.util.Assert.fail(Assert.java:41)
    at ch.actifsource.ui.elementtexteditor.operation.textregion.ElementTextRegionCollection?.checkForNull(ElementTextRegionCollection?.java:351)
    at ch.actifsource.ui.elementtexteditor.operation.textregion.ElementTextRegionCollection?.indexOf(ElementTextRegionCollection?.java:107)
    at ch.actifsource.ui.elementtexteditor.operation.textregion.ElementTextRegionCollection?.comparePositions(ElementTextRegionCollection?.java:211)
    at ch.actifsource.ui.elementtexteditor.operation.textregion.ElementTextRegionCollection?.isForwardSelection(ElementTextRegionCollection?.java:372)
    at ch.actifsource.ui.elementtexteditor.operation.position.SelectionUtil?.getSelectionExcludeBeginOfNextLine(SelectionUtil?.java:291)
    at ch.actifsource.ui.elementtexteditor.operation.position.SelectionUtil?.getInnerMostSelectionExcludeBeginOfNextLine(SelectionUtil?.java:302)
    at ch.actifsource.ui.elementtexteditor.operation.position.SelectionUtil?.getLocationContext(SelectionUtil?.java:190)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.updateActiveContextIfInvalid(AbstractTemplateSelectionModel?.java:415)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.updateActiveContextModel(AbstractTemplateSelectionModel?.java:411)
    at ch.actifsource.ui.templateeditor.selection.FileContextTemplateSelectionModel?.updateActiveContextModel(FileContextTemplateSelectionModel?.java:57)
    at ch.actifsource.ui.templateeditor.TemplateEditorInputConnection?$1.mainContentPageEditorInputChanged(TemplateEditorInputConnection?.java:75)
    at ch.actifsource.ui.templateeditor.TemplateEditorInputConnection?$1.mainContentPageEditorInputChanged(TemplateEditorInputConnection?.java:1)
    at ch.actifsource.ui.templateeditor.selection.ActiveMainContentModel?$ActiveMainContentPageEditorInputModel?.doNotifyStateChanged(ActiveMainContentModel?.java:56)
    at ch.actifsource.ui.templateeditor.selection.ActiveMainContentModel?$ActiveMainContentPageEditorInputModel?.doNotifyStateChanged(ActiveMainContentModel?.java:1)
    at ch.actifsource.ui.widget.util.ObservableStateNonNull?$InternalObservableStateCheckForNull?.doNotifyStateChanged(ObservableStateNonNull?.java:42)
    at ch.actifsource.ui.widget.util.ObservableStateCheckForNull?.notifyStateChanged(ObservableStateCheckForNull?.java:77)
    at ch.actifsource.ui.widget.util.ObservableStateCheckForNull?.setState(ObservableStateCheckForNull?.java:58)
    at ch.actifsource.ui.widget.util.ObservableStateNonNull?.setState(ObservableStateNonNull?.java:77)
    at ch.actifsource.ui.templateeditor.selection.ActiveMainContentModel?$ActiveMainContentPageEditorInputModel?.setFileContextPageEditorInput(ActiveMainContentModel?.java:37)
    at ch.actifsource.ui.templateeditor.selection.ActiveMainContentModel?.setMainContent(ActiveMainContentModel?.java:96)
    at ch.actifsource.ui.templateeditor.selection.ActiveFileContextModel?.setMainContent(ActiveFileContextModel?.java:29)
    at ch.actifsource.ui.templateeditor.selection.ActiveFileContextModel?.setMainContent(ActiveFileContextModel?.java:23)
    at ch.actifsource.ui.templateeditor.selection.ActiveFileContextModel?.setMainContent(ActiveFileContextModel?.java:1)
    at ch.actifsource.ui.templateeditor.tabcontrol.FileContextTabsControl?$2.widgetSelected(FileContextTabsControl?.java:102)
    at org.eclipse.swt.widgets.TypedListener?.handleEvent(TypedListener?.java:248)
    at org.eclipse.swt.widgets.EventTable?.sendEvent(EventTable?.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)