diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index 9d48d2237a6..721b8dc4c7d 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -493,7 +493,7 @@ void Project::setId(Core::Id id) void Project::setRootProjectNode(std::unique_ptr &&root) { - QTC_ASSERT(d->m_rootProjectNode.get() != root.get(), return); + QTC_ASSERT(d->m_rootProjectNode.get() != root.get() || !root, return); if (root && root->isEmpty()) { // Something went wrong with parsing: At least the project file needs to be