Skip to content

Fix NPE when creature type choice is missing #14392 - #16072

Open
AzazelSensei wants to merge 1 commit into
magefree:masterfrom
AzazelSensei:fix-14392-creature-type-npe
Open

Fix NPE when creature type choice is missing #14392#16072
AzazelSensei wants to merge 1 commit into
magefree:masterfrom
AzazelSensei:fix-14392-creature-type-npe

Conversation

@AzazelSensei

Copy link
Copy Markdown

Fixes #14392

Distant Melody and Kindred Dominance both did
SubType.byDescription(choiceKey).getPredicate() after the type dialog.
If the choice key is missing, byDescription returns null and that NPE's.

I added a null check in both cards, same pattern as Bloodline Shaman.
Also added tests for the happy path (choose Elf).

Distant Melody and Kindred Dominance called getPredicate on
SubType.byDescription(choiceKey) without checking null first.
@AzazelSensei

Copy link
Copy Markdown
Author

Closing. I won't keep bumping a PR nobody opened.

@JayDi85 JayDi85 reopened this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE in Distant Melody, Kindred Dominance

2 participants