Skip to content

Fix crash when special power template is null#420

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/gui-sp-null-check
Open

Fix crash when special power template is null#420
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/gui-sp-null-check

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-2WP. The issue was that: ControlBar::processCommandUI dereferences a null SpecialPowerTemplate pointer from a CommandButton without validation, causing an access violation.

  • Added a null check for 'spTemplate' before dereferencing it.
  • Prevents a potential crash if 'commandButton->getSpecialPowerTemplate()' returns null during special power command processing.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 12403189

Not quite right? Click here to continue debugging with Seer.

@github-actions
Copy link
Copy Markdown

⚠️ Title/Commit Validation Failed

Invalid PR title:

  • Fix crash when special power template is null

Invalid commit messages:

  • Fix crash when special power template is null
    PR titles and commit messages must follow conventional commits format:
type: Description
type(scope): Description

Allowed types: bugfix, build, chore, ci, docs, fix, feat, perf, refactor, revert, style, test, tweak, unify

See CONTRIBUTING.md for details.

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

Successfully merging this pull request may close these issues.

0 participants