Commit eeb36ee
Add nullptr checks in ContentAppPlatform mContentAppFactory (project-chip#41827)
* Add nullptr checks in ContentAppPlatform mContentAppFactory
Add additional checks inside ContentAppPlatform to first check
if mContentAppFactory is null to prevent nullptr dereference crashes.
[Problem]
There are several dereferences to mContentAppFactory without first
checking if pointer is valid.
* Update src/app/app-platform/ContentAppPlatform.cpp
Error log when mContentAppFactory is null.
Co-authored-by: chrisdecenzo <[email protected]>
* Update src/app/app-platform/ContentAppPlatform.cpp
Error log when mContentAppFactory is null.
Co-authored-by: chrisdecenzo <[email protected]>
* Update src/app/app-platform/ContentAppPlatform.cpp
Error log when mContentAppFactory is null.
Co-authored-by: chrisdecenzo <[email protected]>
* Apply suggestions from code review
Co-authored-by: chrisdecenzo <[email protected]>
* Restyled changes
---------
Co-authored-by: chrisdecenzo <[email protected]>1 parent 5098c63 commit eeb36ee
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| 329 | + | |
328 | 330 | | |
329 | 331 | | |
330 | 332 | | |
| |||
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| 344 | + | |
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
| |||
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
| 678 | + | |
| 679 | + | |
674 | 680 | | |
675 | 681 | | |
676 | 682 | | |
| |||
0 commit comments