smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 245 forks source link

Ensure valid application pointer in RAI::CheckLanguage and FinishSendingResponseToMobile #3815

Closed iCollin closed 2 years ago

iCollin commented 2 years ago

Fixes #3813

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/2602

Summary

Prevent derefing nullptr for application in some methods during registration

CLA

iCollin commented 2 years ago

Yes good theory, we should also probably check if application has been unregistered before beginning ResumptionDataProcessorImpl::Restore.