Skip to content

Commit

Permalink
fix segfault when no versions for a pacakge is found
Browse files Browse the repository at this point in the history
  • Loading branch information
gedaiu committed Dec 14, 2023
1 parent d88b7b9 commit 08afc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08afc9c

Please sign in to comment.