Merge "Fix null pointer with getMin/MaxValue." into qt-dev