-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure test event trigger delegate is not null before using it #33949
make sure test event trigger delegate is not null before using it #33949
Conversation
PR #33949: Size comparison from 4d5e2ee to e5ea8a0 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
I'm not sure i agree with this... Test Event Trigger is required by those apps. |
@mkardous-silabs It could be said that the smoke-co-alarm app could indeed need a test trigger but I don't see a reason not to give the user an option not to not have it. Test triggers are needed only for dev and cert, and not intended to have in shipping products, obviously. |
…pp is built without setting test event trigger delegate mTestEventTriggerDelegate
e5ea8a0
to
82f7cd9
Compare
PR #33949: Size comparison from 74768a8 to 82f7cd9 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
…oject-chip#33949) * - added null check to code which was leading to a fatal error if an app is built without setting test event trigger delegate mTestEventTriggerDelegate * Log warning message when mTestEventTriggerDelegate is null
If an app is not setting the test event trigger delegate, while CHIP_CONFIG_ENABLE_ICD_SERVER is enabled, it would result in accessing a nonexistent memory.