aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmakeprojectmanager
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-03-24 14:54:43 +0100
committerhjk <hjk@qt.io>2020-03-25 13:29:42 +0000
commit6c1894b8930084e309cb3c8c785d9adb5c711447 (patch)
treecf5bd0019bfc77c90f16642d82ce1291072cb190 /src/plugins/qmakeprojectmanager
parent02093f5ab28e9f2745fa53ee783bd15729397248 (diff)
Qmake: Work around crash
The condition that's checked now triggered when playing around with changing the JS expression that creating the default build directory name. Change-Id: I221be8cefb6918c10c383c23ee7cde73d3683e40 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmakeprojectmanager')
-rw-r--r--src/plugins/qmakeprojectmanager/qmakenodes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakenodes.cpp b/src/plugins/qmakeprojectmanager/qmakenodes.cpp
index 01a4910140..d17ccfd5a1 100644
--- a/src/plugins/qmakeprojectmanager/qmakenodes.cpp
+++ b/src/plugins/qmakeprojectmanager/qmakenodes.cpp
@@ -112,6 +112,7 @@ bool QmakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
}
QTC_ASSERT(proFileNode, return false);
pro = proFileNode->proFile();
+ QTC_ASSERT(pro, return false);
t = pro->projectType();
}