[iOS, Mac] Exception should be thrown when shell item is null - #29464
[iOS, Mac] Exception should be thrown when shell item is null#29464HarishwaranVijayakumar wants to merge 6 commits into
Conversation
|
Hey there @@HarishwaranVijayakumar! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
| if (Shell.CurrentItem == null) | ||
| { | ||
| return; | ||
| throw new InvalidOperationException($"Content not found for active {Shell}. Title: {Shell.Title}. Route: {Shell.Route}."); |
There was a problem hiding this comment.
This is aligning the behavior with other platforms?
There was a problem hiding this comment.
@jsuarezruiz Yes on Android, InvalidOperationException is thrown. On windows, this pr #28879 will ensure the same behavior
|
What is the case where ShellItem is null? |
|
@rmarinho If the ShellItem is null, an InvalidOperationException will be thrown |
|
The fact that this PR is for ios and mac and this other one is for windows: #28879 this means only android throws. Maybe android is wrong. |
mattleibow
left a comment
There was a problem hiding this comment.
This is what android does, for future me
mattleibow
left a comment
There was a problem hiding this comment.
This needs a test to be shared. Probably worth merging with #28879
|
Closing this PR, since the changes are merged into this PR #28879 |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
Root Cause of the issue
Description of Change
For Windows, Issue will be fixed by this PR 28879
Tested the behaviour in the following platforms
Output