From 10f94d679f04c69069d6a86146139218360e7c0f Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Mon, 5 Oct 2009 17:43:50 +0200
Subject: [PATCH] Hitting build would still crash for a qml project

---
 src/plugins/projectexplorer/projectexplorer.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index abe34747f45..034dd07469e 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -1423,8 +1423,13 @@ void ProjectExplorerPlugin::buildProjectOnly()
 static QStringList configurations(const QList<Project *> &projects)
 {
     QStringList result;
-    foreach (const Project * pro, projects)
-        result << pro->activeBuildConfiguration()->name();
+    foreach (const Project * pro, projects) {
+        if (BuildConfiguration *bc = pro->activeBuildConfiguration()) {
+            result << bc->name();
+        } else {
+            result << QString::null;
+        }
+    }
     return result;
 }
 
-- 
GitLab