Merge pull request #1367 from erri120/more-nullability-errors

More nullability errors
This commit is contained in:
erri120 2021-03-12 17:59:50 +00:00 committed by GitHub
commit 5e5465396e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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