Adding additional nuget null handling due to a linux issue in the dotnet inspector which will not populate empty arrays [].
@@ -57,11 +57,17 @@ public class NugetDependencyNodeBuilder {
public DependencyGraph createDependencyGraph(final List<NugetPackageId> packageDependencies) {
final MutableDependencyGraph graph = new MutableMapDependencyGraph();
+ if (packageSets != null) {
for (final NugetPackageSet packageSet : packageSets) {
+ if (packageSet.dependencies != null) {
for (final NugetPackageId id : packageSet.dependencies) {
+ if (packageSet.packageId != null) {
graph.addParentWithChild(convertPackageId(packageSet.packageId), convertPackageId(id));
}
}
+ }
+ }
+ }
packageDependencies.forEach(it -> {
graph.addChildToRoot(convertPackageId(it));
