Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Cornul11 committed Feb 20, 2024
1 parent 950caa5 commit a200876
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
Expand Down Expand Up @@ -54,6 +55,9 @@ public ProjectMetadata(String projectName, List<Dependency> directDependencies,
}

private List<Dependency> cleanDependencies(List<Dependency> dependencies) {
if (dependencies == null) {
return new ArrayList<>();
}
return dependencies.stream()
.map(dep -> new Dependency(
cleanGroupId(dep.getGroupId()),
Expand Down

0 comments on commit a200876

Please sign in to comment.