Skip to content

Fix: Prevent null dereference when getting player beacon template#365

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/player-beacon-template-null-deref
Open

Fix: Prevent null dereference when getting player beacon template#365
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/player-beacon-template-null-deref

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented Mar 1, 2026

Fixes CLIENT-3V6. The issue was that: Player::transferAssetsFromThat dereferences a null PlayerTemplate when getting the beacon template, causing an AsciiString constructor access violation.

  • Added a null check for the result of that->getPlayerTemplate() before attempting to retrieve the beacon template.
  • Ensures beaconTemplate is set to nullptr if that->getPlayerTemplate() returns nullptr, preventing potential crashes.

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

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

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