diff --git a/src/plugins/qtsupport/qtoptionspage.cpp b/src/plugins/qtsupport/qtoptionspage.cpp index 356469e4c2f..f8e829a2e08 100644 --- a/src/plugins/qtsupport/qtoptionspage.cpp +++ b/src/plugins/qtsupport/qtoptionspage.cpp @@ -629,6 +629,8 @@ void QtOptionsPageWidget::editPath() if (qtVersion.isNull()) return; BaseQtVersion *version = QtVersionFactory::createQtVersionFromQMakePath(qtVersion); + if (!version) + return; // Same type? then replace! if (current->type() != version->type()) { // not the same type, error out