Skip to content

Fix: Guard against null controlling player in Team relationship#385

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/team-null-controlling-player
Open

Fix: Guard against null controlling player in Team relationship#385
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/team-null-controlling-player

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-41K. The issue was that: Team::getRelationship dereferences a null controlling player pointer when querying player relationship, causing an access violation.

  • Guarded against a null controllingPlayer in the Team::getRelationship method.
  • Prevents an access violation if getControllingPlayer() returns nullptr.
  • Returns NEUTRAL relationship if the controlling player is null.

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

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