diff --git a/qbs/modules/buildconfig/buildconfig.qbs b/qbs/modules/buildconfig/buildconfig.qbs index adddfbf43..9be8af622 100644 --- a/qbs/modules/buildconfig/buildconfig.qbs +++ b/qbs/modules/buildconfig/buildconfig.qbs @@ -823,7 +823,7 @@ Module { for(var i = 0; i < includePaths.length; i++) { - if (includePaths[i].includes("xerces-c")) + if (typeof includePaths[i] === 'string' && includePaths[i].includes("xerces-c")) { paths.push(includePaths[i]); }