diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue2222.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue2222.cs index 256b6a0372d4..0f0643a34c9b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue2222.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue2222.cs @@ -1,5 +1,4 @@ -#if TEST_FAILS_ON_IOS //Application crashes when ToolbarItem is created with invalid IconImageSource name.Issue Link: https://github.com/dotnet/maui/issues/27095 -using NUnit.Framework; +using NUnit.Framework; using UITest.Appium; using UITest.Core; @@ -20,5 +19,4 @@ public void TestItDoesntCrashWithWrongIconName() App.WaitForElement("TestLabel"); } } -} -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/src/Core/src/ImageSources/FileImageSourceService/FileImageSourceService.iOS.cs b/src/Core/src/ImageSources/FileImageSourceService/FileImageSourceService.iOS.cs index ac5175220c9c..322bbe0cfcfc 100644 --- a/src/Core/src/ImageSources/FileImageSourceService/FileImageSourceService.iOS.cs +++ b/src/Core/src/ImageSources/FileImageSourceService/FileImageSourceService.iOS.cs @@ -41,7 +41,7 @@ public partial class FileImageSourceService { Logger?.LogWarning(ex, "Unable to load image file '{File}'.", imageSource.File); - throw; + return FromResult(null); } }