Repository navigation
Fix crashes in the draft editors and the mobile variant list - #12552
Merged
Merged
Conversation
The deck statistics read the editor's deck to show format points, but the draft, quest shop and token viewer editors have no deck, so every pick or card move threw. The mobile lobby threw when switching from one variant to another, because clearing the old variant reset the list to (None) before the new choice was read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevlahnota
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two crashes from #12521 (format dropdown) and #12522 (Canadian Highlander). The desktop one was reported. The mobile one was found by a code audit of both PRs and has not been reported.
Bug report
Desktop (reported): opening a booster draft throws.
Mobile (from code analysis): switching the lobby's Variants list from one variant to another can throw a
ClassCastException.Root cause
Fix
CStatisticshides the points line when the editor has no deck controller.Audit
Every file in both PRs was checked for other runtime errors, on desktop, mobile and Android (minSdk 26: d8 backports the new
List.of,Map.copyOfand record uses). No other crash was found.🤖 Generated with Claude Code