Browse Source

Added null coalescing to link accesses

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
9d3a011b45
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      IPA.Loader/Loader/PluginMetadata.cs

+ 3
- 3
IPA.Loader/Loader/PluginMetadata.cs View File

@ -129,9 +129,9 @@ namespace IPA.Loader
Description = value.Description;
Author = value.Author;
IconName = value.IconPath;
PluginHomeLink = value.Links.ProjectHome;
PluginSourceLink = value.Links.ProjectSource;
DonateLink = value.Links.Donate;
PluginHomeLink = value.Links?.ProjectHome;
PluginSourceLink = value.Links?.ProjectSource;
DonateLink = value.Links?.Donate;
AssociatedFiles = value.Files
.Select(f => Path.Combine(UnityGame.InstallPath, f))
.Select(p => new FileInfo(p)).ToList();


Loading…
Cancel
Save