Fixed NullReferenceExcpetion for NexusApitUtils.FixupSummary

This commit is contained in:
erri120 2020-04-24 12:22:01 +02:00
parent 8f08ac8003
commit b10d9c8b59
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -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("<br/>", "\n\n")
.Replace("<br />", "\n\n")