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

App crashes when the last item is deleted #3

Open
lchamp opened this issue Oct 24, 2021 · 0 comments
Open

App crashes when the last item is deleted #3

lchamp opened this issue Oct 24, 2021 · 0 comments

Comments

@lchamp
Copy link

lchamp commented Oct 24, 2021

Issue description

The watchOS app crashes when the last event is deleted from the list.

Steps to reproduce the issue

  1. Add one (or more) event to the list
  2. Remove them one by one using the swipe-to-delete gesture
  3. Note that when the last one is deleted the behavior is a crash

What's the expected result?

  • Application should not crash
  • We should see the (empty) list and the Create Event button.

What's the actual result?

  • Application crash, returns to the watch apps list

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'

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

No branches or pull requests

1 participant