Skip to content

Fix: Handle missing modules during INI parsing#353

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/missing-module-ini
Open

Fix: Handle missing modules during INI parsing#353
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/missing-module-ini

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-317. The issue was that: ThingTemplate::parseModuleName dereferences a null ModuleData pointer when ModuleFactory::newModuleDataFromINI fails to find a module.

  • Added a null check for ModuleData returned by TheModuleFactory->newModuleDataFromINI.
  • If ModuleData is nullptr, a DEBUG_CRASH is triggered, and INI_INVALID_DATA is thrown.
  • Improves error handling and prevents crashes when a module specified in an INI file is not found.

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

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