Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 056c93eb authored by Tom Keel's avatar Tom Keel
Browse files

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: default avatarTom Keel <thomas.keel@intel.com>
parent dc897061
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment