-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS] Fixed the Application crash when ToolbarItem is created with invalid IconImageSource name #27175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Fixed the Application crash when ToolbarItem is created with invalid IconImageSource name #27175
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ public partial class FileImageSourceService | |
| { | ||
| Logger?.LogWarning(ex, "Unable to load image file '{File}'.", imageSource.File); | ||
|
|
||
| throw; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mattleibow I understand that throwing the exception at this point was a expected behavior, right? |
||
| return FromResult(null); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on https://github.com/dotnet/maui/pull/27175/files#r1939317042 |
||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens on other platforms? Based on the test, guess not throwing an exception, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An exception is not thrown on other platforms when an invalid IconImageSource name is provided @jsuarezruiz