Skip to content

Commit

Permalink
Fixed potential NullReferenceException om Fetcher.GetPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Apr 15, 2023
1 parent 56d7dfc commit f38bc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Fetchers/Fetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected virtual void Download(IBuilder builder, DownloadRetrievalMethod downlo
/// </summary>
/// <returns>A fully qualified path to the directory containing the implementation; <c>null</c> if the requested implementation could not be found in the store or is a package implementation.</returns>
protected string? GetPath(ImplementationBase implementation)
=> implementation.ID.StartsWith(ExternalImplementation.PackagePrefix)
=> string.IsNullOrEmpty(implementation.ID) || implementation.ID.StartsWith(ExternalImplementation.PackagePrefix)
? null
: Store.GetPath(implementation.ManifestDigest);

Expand Down

0 comments on commit f38bc8d

Please sign in to comment.