More nullability errors

This commit is contained in:
erri120 2021-03-12 14:49:34 +01:00
parent 5a7ad097a3
commit 656f017742
No known key found for this signature in database
GPG Key ID: 7FA9556C936B847C
2 changed files with 3 additions and 2 deletions

View File

@ -585,7 +585,8 @@ namespace Wabbajack.Lib
var grouped = ModList.Directives.OfType<InlineFile>()
.Where(f => f.SourceDataID == default)
.GroupBy(f => f.SourceDataFile)
.ToDictionary(f => f.Key);
.Where(x => x.Key != null)
.ToDictionary(f => f.Key!);
if (grouped.Count == 0) return;
await VFS.Extract(Queue, grouped.Keys.ToHashSet(), async (vf, sfn) =>

View File

@ -103,7 +103,7 @@ namespace Wabbajack
this IObservable<TRet> source,
ViewModel vm,
string property,
TRet initialValue = default,
TRet? initialValue = default,
bool deferSubscription = false)
{
return source