From 52d2fb69b101f66e37b5f61a67f53e71ade633c7 Mon Sep 17 00:00:00 2001 From: sluicebox <22204938+sluicebox@users.noreply.github.com> Date: Sun, 31 Dec 2023 02:41:35 -0800 Subject: [PATCH] CREATE_PROJECT: Fix crash when all engines disabled --- devtools/create_project/create_project.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp index 0a2f6769002..193f3e3d78e 100644 --- a/devtools/create_project/create_project.cpp +++ b/devtools/create_project/create_project.cpp @@ -1887,6 +1887,9 @@ void ProjectProvider::addFilesToProject(const std::string &dir, std::ostream &pr const std::string &pchIncludeRoot, const StringList &pchDirs, const StringList &pchExclude, const std::string &filePrefix) { FileNode *files = scanFiles(dir, includeList, excludeList); + if (files == nullptr) { + return; + } writeFileListToProject(*files, projectFile, 0, std::string(), filePrefix + '/', pchIncludeRoot, pchDirs, pchExclude);