From b10d9c8b595aacdda82469eb6081bd0e70dd3975 Mon Sep 17 00:00:00 2001 From: erri120 Date: Fri, 24 Apr 2020 12:22:01 +0200 Subject: [PATCH] Fixed NullReferenceExcpetion for NexusApitUtils.FixupSummary --- Wabbajack.Lib/NexusApi/NexusApiUtils.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wabbajack.Lib/NexusApi/NexusApiUtils.cs b/Wabbajack.Lib/NexusApi/NexusApiUtils.cs index c75ecf78..39347cfb 100644 --- a/Wabbajack.Lib/NexusApi/NexusApiUtils.cs +++ b/Wabbajack.Lib/NexusApi/NexusApiUtils.cs @@ -17,8 +17,10 @@ namespace Wabbajack.Lib.NexusApi return $"https://nexusmods.com/{game.MetaData().NexusName}/mods/{argModId}"; } - public static string FixupSummary(string argSummary) + public static string FixupSummary(string? argSummary) { + if (argSummary == null) + return ""; return argSummary.Replace("'", "'") .Replace("
", "\n\n") .Replace("
", "\n\n")