summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
diff options
context:
space:
mode:
authorTom Keel <thomas.keel@intel.com>2015-10-08 16:42:56 +0200
committerSteve Kondik <steve@cyngn.com>2015-11-07 01:55:58 -0800
commit51a7da9ce54572f4291ec9101238cf1df3d6697e (patch)
tree0cd9568daec598ae4f33777e11edea16c04648f0 /services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
parent52210c122731823cdcb0ebc6431179979b572f65 (diff)
downloadframeworks_av-51a7da9ce54572f4291ec9101238cf1df3d6697e.zip
frameworks_av-51a7da9ce54572f4291ec9101238cf1df3d6697e.tar.gz
frameworks_av-51a7da9ce54572f4291ec9101238cf1df3d6697e.tar.bz2
libcameraservice: Fix nullptr crash when no client.
This change prevents a crash in the camera service when the camera HAL notifies the service about the absence of a removable camera and there happens to be no client connected to the service. It checks that the pointer returned from clientToDisconnect.get() is non-null before trying to dereference it (as is done in existing code immediately below this change). Change-Id: I8055654bac980542e63ea7f52bf897eaafbc09bc Signed-off-by: Tom Keel <thomas.keel@intel.com>
Diffstat (limited to 'services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp')
0 files changed, 0 insertions, 0 deletions