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>
This commit is contained in:
hjk
2020-03-24 14:54:43 +01:00
parent 02093f5ab2
commit 6c1894b893

View File

@@ -112,6 +112,7 @@ bool QmakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
} }
QTC_ASSERT(proFileNode, return false); QTC_ASSERT(proFileNode, return false);
pro = proFileNode->proFile(); pro = proFileNode->proFile();
QTC_ASSERT(pro, return false);
t = pro->projectType(); t = pro->projectType();
} }