From 548e78088cf5c3488c241e60b66246da44b5cc98 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Thu, 9 Apr 2020 13:10:55 -0500 Subject: [PATCH] Added null coalescing to link accesses --- IPA.Loader/Loader/PluginMetadata.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IPA.Loader/Loader/PluginMetadata.cs b/IPA.Loader/Loader/PluginMetadata.cs index c5f97e5a..fd298c22 100644 --- a/IPA.Loader/Loader/PluginMetadata.cs +++ b/IPA.Loader/Loader/PluginMetadata.cs @@ -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();