BurkusCat / Burkus.Mvvm.Maui

A simple MVVM framework for .NET MAUI. It provides: navigation, lifecycle events, parameter passing, native dialog abstractions, and testability.
MIT License
27 stars 5 forks source link

[Bug] ResetStackAndPush with an empty stack causes a crash #19

Closed BurkusCat closed 1 year ago

BurkusCat commented 1 year ago

Describe the bug When the navigation stack is empty, if I call ResetStackAndPush I get an exception that the sequence contains no elements.

To Reproduce Steps to reproduce the behavior:

  1. On app startup, call ResetStackAndPush
  2. Observe exception

Expected behavior App navigations to the chosen page

Additional context N/A