re #10657 added protection around xmin and xmax values + unit test
Merge remote-tracking branch 'origin/feature/10657_CreateSampleWorkspaceCrash'