From 02119439091c2795bc729acaedde11f373ae91ae Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 29 Aug 2023 16:49:46 +0200 Subject: [PATCH] QmlDesigner: Fix crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If3f13e31eba0ec03177c8954a09b73ac60c59c69 Reviewed-by: Henning Gründl --- src/plugins/insight/insightmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/insight/insightmodel.cpp b/src/plugins/insight/insightmodel.cpp index 2d2550aac55..75ac061838c 100644 --- a/src/plugins/insight/insightmodel.cpp +++ b/src/plugins/insight/insightmodel.cpp @@ -605,8 +605,11 @@ void InsightModel::parseDefaultConfig() const ProjectExplorer::Target *target = ProjectExplorer::ProjectTree::currentTarget(); if (target) { const QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(target->kit()); - m_defaultConfig = readJSON(qtVersion->dataPath().toString() + "/" + dataFolder + "/" - + insightConfFile); + + if (qtVersion) { + m_defaultConfig = readJSON(qtVersion->dataPath().toString() + "/" + dataFolder + "/" + + insightConfFile); + } } }