Fix VSI crash when selecting Scale or Cut Filter when "builtin" node is selected #15349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #11947
Issue
The pipeline browser in the VSI has an initial node called
builtin
(not sure why it is selectable at all). If this node is selected and subsequentlyCut
orScale
is pressed, Mantid used to crash.The cause of the crash is related to us querrying for an Active Source when there is none (basically, because the
builtin
node is neither a source or a filter). The issue arises here, when we pass the Active Source (which isnullptr
) to thectObjectBuilder
screateFilter
methodSolution
In the filter callbacks we need to hedge for empty Active Sources and not do anything if we encounter such a situation.
For Tester:
Please find an Ubunutu installer here: //olympic/babylon5/Scratch/Anton/VSI/11947
Release Notes
Implemented Tests
Functional Testing
builin
node in the pipeline browser (the icon at the beginning of the pipeline).Scale
Cut