ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.62k stars 2.23k forks source link

[BUG]: Deleting Custom Study Session Deck crashes app #16042

Closed brishtibheja closed 7 months ago

brishtibheja commented 7 months ago

Checked for duplicates?

Does it also happen in the desktop version?

What are the steps to reproduce this bug?

  1. Custom Study
  2. Preview new cards
  3. Now delete the custom study session's deck

Expected behaviour

Nothing happens

Actual behaviour

App crashes

Debug info

AnkiDroid Version = 2.18alpha7 (1c5a6b3c220d67a75dd4b4d78e1fc8a6cc4b4789)

Backend Version = provider(?) (23.12.1 1a1d4d5419c6b57ef3baf99c9d2d9cf85d36ae0a)

Android Version = 11 (SDK 30)

ProductFlavor = full

Manufacturer = realme

Model = RMX2193

Hardware = mt6768

Webview User Agent = null

ACRA UUID = cf265e01-9693-407f-984d-61ddf9698fac

FSRS Enabled = true

Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

lukstbit commented 7 months ago

Thanks for the bug report. I've created a fix which should be available in the next alpha.

brishtibheja commented 7 months ago

@lukstbit I just realized I forgot to add that this also happened with "review ahead".

lukstbit commented 7 months ago

I've just tested with my fix and Review ahead doesn't crash. If you see this with the new alpha(containing the fix) please open a new bug report so I can take a look.