Skip to content

Commit

Permalink
Nullability fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Sep 7, 2021
1 parent 273538f commit 300b782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EFCore.Sqlite.Core/Infrastructure/SpatialiteLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static void FindExtension()
var candidateAssets = new Dictionary<(string, string), int>();
var rid = RuntimeInformation.RuntimeIdentifier;
var rids = DependencyContext.Default!.RuntimeGraph.FirstOrDefault(g => g.Runtime == rid)?.Fallbacks.ToList()
?? new List<string>();
?? new List<string?>();
rids.Insert(0, rid);

foreach (var library in DependencyContext.Default.RuntimeLibraries)
Expand All @@ -142,7 +142,7 @@ private static void FindExtension()
StringComparison.OrdinalIgnoreCase))
{
var fallbacks = rids.IndexOf(group.Runtime);
if (fallbacks != -1)
if (fallbacks != -1 && library.Path is not null)
{
candidateAssets.Add((library.Path, file.Path), fallbacks);
}
Expand Down

0 comments on commit 300b782

Please sign in to comment.