commit | d859d8a3ea3eb88d48119dad0550da3ac5a48b59 | [log] [tgz] |
---|---|---|
author | Tom Rudick <tmr@google.com> | Fri Nov 18 11:32:45 2016 -0500 |
committer | Tom Rudick <tmr@google.com> | Fri Nov 18 11:32:45 2016 -0500 |
tree | e066a5cf2d6381aaeaebda9336bbc36002153442 | |
parent | fb071462592ec32f4240cb6f8318961404e27d34 [diff] |
If a device does not have a camera, do not set a camera death notifier getService("media.camera") will return a NULL binder if there is no camera service present. This will result in a segfault when we attempt to set the DeathListener on the binder. If the camera binder is NULL, we should not attempt to set a notifier. Bug: 32742216 Bug: 32742421 Change-Id: Id6e7cabdd9e2f0f5d44f4ce435121f84d891026a