add some failsafes around assignment and application of data

This commit is contained in:
Stanley Dimant
2022-07-24 19:29:50 +02:00
parent db4854cba9
commit 03414c9c94
3 changed files with 40 additions and 10 deletions

View File

@@ -138,7 +138,10 @@ public class CachedPlayer
foreach (var kind in objectKind)
{
ApplyCustomizationData(kind);
if (_cachedData.GlamourerData.ContainsKey(kind))
{
ApplyCustomizationData(kind);
}
}
}, downloadToken).ContinueWith(task =>
{
@@ -147,6 +150,8 @@ public class CachedPlayer
Logger.Debug("Download Task was cancelled");
_apiController.CancelDownload(downloadId);
});
_downloadCancellationTokenSource = null;
}
private List<FileReplacementDto> TryCalculateModdedDictionary(out Dictionary<string, string> moddedDictionary)