summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-06-01 13:27:16 -0700
committerJake Petroules <jake.petroules@qt.io>2017-06-02 18:35:27 +0000
commitbc3f802c23c91b64fe8106edb7e145807e7580c3 (patch)
tree9d4edd94475e3b6a2ec55a0a3286aa008b9e10e7
parenta63002868790852b554e5e2ae20af67a3e7aaea6 (diff)
downloadqbs-bc3f802c23c91b64fe8106edb7e145807e7580c3.tar.gz
Prevent passing undefined to a function which does not accept it
This unblocks other error handling. Change-Id: Ib4f2f468fee05021e14846bd529239de0cbd905a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--share/qbs/modules/qnx/qnx.qbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/qnx/qnx.qbs b/share/qbs/modules/qnx/qnx.qbs
index 1dc677850..5374e99a7 100644
--- a/share/qbs/modules/qnx/qnx.qbs
+++ b/share/qbs/modules/qnx/qnx.qbs
@@ -71,7 +71,7 @@ Module {
version: qnxSdkProbe.found ? qnxSdkProbe.fileName.substr(3, 3).split("").join(".") : undefined
- readonly property bool qnx7: Utilities.versionCompare(version, "7") >= 0
+ readonly property bool qnx7: version ? Utilities.versionCompare(version, "7") >= 0 : false
property string sdkDir: qnxSdkProbe.filePath