diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-06-01 13:27:16 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-06-02 18:35:27 +0000 |
commit | bc3f802c23c91b64fe8106edb7e145807e7580c3 (patch) | |
tree | 9d4edd94475e3b6a2ec55a0a3286aa008b9e10e7 | |
parent | a63002868790852b554e5e2ae20af67a3e7aaea6 (diff) | |
download | qbs-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.qbs | 2 |
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 |