From 0207c7ac07312381776b1222afbf7f9fde91203d Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Wed, 13 May 2020 08:06:18 -0600 Subject: [PATCH] Fix possible NPE --- Wabbajack.Lib/MO2Compiler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.Lib/MO2Compiler.cs b/Wabbajack.Lib/MO2Compiler.cs index 866b0674..29e36e73 100644 --- a/Wabbajack.Lib/MO2Compiler.cs +++ b/Wabbajack.Lib/MO2Compiler.cs @@ -88,7 +88,7 @@ namespace Wabbajack.Lib var otherProfilesPath = MO2ProfileDir.Combine("otherprofiles.txt"); SelectedProfiles = new HashSet(); if (otherProfilesPath.Exists) SelectedProfiles = (await otherProfilesPath.ReadAllLinesAsync()).ToHashSet(); - SelectedProfiles.Add(MO2Profile); + SelectedProfiles.Add(MO2Profile!); Info("Using Profiles: " + string.Join(", ", SelectedProfiles.OrderBy(p => p))); @@ -322,7 +322,7 @@ namespace Wabbajack.Lib Archives = SelectedArchives.ToList(), ModManager = ModManager.MO2, Directives = InstallDirectives, - Name = ModListName ?? MO2Profile, + Name = ModListName ?? MO2Profile!, Author = ModListAuthor ?? "", Description = ModListDescription ?? "", Readme = ModlistReadme ?? "",