Skip to content

Commit

Permalink
Merge #3869 Fix Netkan swinfo transformer null list error
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 27, 2023
2 parents 83b6e7d + c556475 commit e78cf0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- [GUI] Updated Chinese translation to reduce misunderstandings (#3864 by: Fierce-Cat; reviewed: HebaruSan)
- [Multiple] Translation updates from Crowdin (#3866, #3868 by: Nikita, Вячеслав Бучин, vinix, WujekFoliarz; reviewed: HebaruSan)
- [Multiple] Fix deletion of unmanaged files (#3865 by: HebaruSan; reviewed: techman83)
- [Netkan] Fix Netkan swinfo transformer null list error (#3869 by: HebaruSan)

## v1.33.2 (Laplace)

Expand Down
7 changes: 4 additions & 3 deletions Netkan/Transformers/SpaceWarpInfoTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ public IEnumerable<Metadata> 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<string>())
.ToHashSet();
var missingDeps = swinfo.dependencies
.Select(dep => dep.id)
.Where(depId => !moduleDeps.Contains(
Expand Down

0 comments on commit e78cf0e

Please sign in to comment.