From e4b19743ca3eda862946313f90c304a8231cb982 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 16 Dec 2021 23:37:27 +0100 Subject: [PATCH] baseUri can be null. --- src/Avalonia.Base/Platform/IAssetLoader.cs | 2 +- src/Shared/PlatformSupport/AssetLoader.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Base/Platform/IAssetLoader.cs b/src/Avalonia.Base/Platform/IAssetLoader.cs index ec1f97f178..e3899784ad 100644 --- a/src/Avalonia.Base/Platform/IAssetLoader.cs +++ b/src/Avalonia.Base/Platform/IAssetLoader.cs @@ -74,6 +74,6 @@ namespace Avalonia.Platform /// The URI. /// The base URI. /// All matching assets as a tuple of the absolute path to the asset and the assembly containing the asset - IEnumerable GetAssets(Uri uri, Uri baseUri); + IEnumerable GetAssets(Uri uri, Uri? baseUri); } } diff --git a/src/Shared/PlatformSupport/AssetLoader.cs b/src/Shared/PlatformSupport/AssetLoader.cs index 95ac79ae31..43f9211889 100644 --- a/src/Shared/PlatformSupport/AssetLoader.cs +++ b/src/Shared/PlatformSupport/AssetLoader.cs @@ -109,7 +109,7 @@ namespace Avalonia.Shared.PlatformSupport /// The URI. /// Base URI that is used if is relative. /// All matching assets as a tuple of the absolute path to the asset and the assembly containing the asset - public IEnumerable GetAssets(Uri uri, Uri baseUri) + public IEnumerable GetAssets(Uri uri, Uri? baseUri) { if (uri.IsAbsoluteUri && uri.Scheme == "resm") {