Merge "Fixed an NPE in the RegionSamplingHelper" into qt-dev