Skip to content

bugfix(engine): Prevent silent failure when module data creation fails#433

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/module-data-creation-failure
Open

bugfix(engine): Prevent silent failure when module data creation fails#433
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/module-data-creation-failure

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-317. The issue was that: ThingTemplate::parseModuleName dereferences a null ModuleData pointer returned by ModuleFactory::newModuleDataFromINI when a module is unregistered.

  • Added a null check for the return value of TheModuleFactory->newModuleDataFromINI.
  • If module data creation fails (returns nullptr), a DEBUG_CRASH is triggered and INI_INVALID_DATA is thrown.
  • This ensures that the engine fails loudly and early when a module cannot be created, preventing potential silent runtime issues.

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

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