diff --git a/Netkan/Transformers/SpaceWarpInfoTransformer.cs b/Netkan/Transformers/SpaceWarpInfoTransformer.cs index fcc52d23b2..a37f29272f 100644 --- a/Netkan/Transformers/SpaceWarpInfoTransformer.cs +++ b/Netkan/Transformers/SpaceWarpInfoTransformer.cs @@ -84,9 +84,10 @@ public IEnumerable Transform(Metadata metadata, TransformOptions opts) log.InfoFormat("Found compatibility: {0}–{1}", minVer, maxVer); ModuleService.ApplyVersions(json, null, minVer, maxVer); } - var moduleDeps = mod.depends.Select(r => (r as ModuleRelationshipDescriptor)?.name) - .Where(ident => ident != null) - .ToHashSet(); + var moduleDeps = (mod.depends?.Select(r => (r as ModuleRelationshipDescriptor)?.name) + .Where(ident => ident != null) + ?? Enumerable.Empty()) + .ToHashSet(); var missingDeps = swinfo.dependencies .Select(dep => dep.id) .Where(depId => !moduleDeps.Contains(