Skip to content
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

Bug: App crashes on User Dashboard #683

Open
drusteeby opened this issue Feb 7, 2025 · 2 comments
Open

Bug: App crashes on User Dashboard #683

drusteeby opened this issue Feb 7, 2025 · 2 comments

Comments

@drusteeby
Copy link
Contributor

drusteeby commented Feb 7, 2025

Steps to repo:

  1. On User Dashboard create a new user
  2. Save User
  3. Delete User

Application crashes with index out of range exception in RemoveUser method.

In UserDashboardViewModel , the RemoveUser method is assuming that the user to be deleted is not the last one in the list, it attempts to reset the SelectedUser to Users[index+1] which will thrown an exception if index was the last item.

@dipeshmsft
Copy link
Member

@drusteeby thanks for reporting this issue. Are you going to work on the above issue ?

@dipeshmsft dipeshmsft added this to the WPF Gallery v1.1.1 milestone Feb 7, 2025
@drusteeby
Copy link
Contributor Author

drusteeby commented Feb 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants