device-manager: Add null check in handle_device_connected() 68/271568/1 accepted/tizen/unified/20220224.125721 submit/tizen/20220224.015132
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 23 Feb 2022 05:40:50 +0000 (14:40 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 23 Feb 2022 05:40:50 +0000 (14:40 +0900)
commitd972a340200f90a0b9afffb50d10cf139ebd1640
tree88bd8bd33100167e7830348bf92c45b0a357719e
parent290a87181918376a0a1130885010358ab9106668
device-manager: Add null check in handle_device_connected()

When the last parameter of handle_device_connected() is NULL,
it gets the required structure again from the list referring to
device-map.json. The result is checked now to avoid unwanted
assertion by other functions.

[Version] 15.0.2
[Issue Type] Improvement

Change-Id: Id3c07d579b1d273386a6eab2e6618abf27baabf8
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/device-manager.c