Skip to content

SpecialPowerModule: Add null checks for SpecialPowerTemplate before accessing its members - #81

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/specialpowermodule-nullchecks
Open

SpecialPowerModule: Add null checks for SpecialPowerTemplate before accessing its members#81
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/specialpowermodule-nullchecks

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-H3. The issue was that: SpecialPowerModule construction failed because the required SpecialPowerTemplate was missing in the object's INI configuration, causing a NULL pointer dereference at offset 0xd.

  • Added null checks for getSpecialPowerTemplate() before accessing its members to prevent potential null pointer dereferences.
  • Added null checks for getSpecialPowerModuleData()->m_specialPowerTemplate before accessing its members to prevent potential null pointer dereferences.

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

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