diff --git a/source/dub/project.d b/source/dub/project.d index 5abfd4571..a0caeb261 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -545,7 +545,7 @@ class Project { } } - if (!m_dependencies.canFind(p)) { + if (p !is null && !m_dependencies.canFind(p)) { logDiagnostic("%sFound dependency %s %s", indent, dep.name, vspec.toString()); m_dependencies ~= p; if (basename == m_rootPackage.basePackage.name)