commit | 3b83dc695125192b07ca0b79bd91830f9859484a | [log] [tgz] |
---|---|---|
author | Avichal Rakesh <arakesh@google.com> | Mon May 23 22:57:56 2022 +0000 |
committer | Avichal Rakesh <arakesh@google.com> | Tue May 24 21:09:47 2022 +0000 |
tree | bfdd634186ff447590753d858a7201808e1901d7 | |
parent | 5e6dbb8cf19d17fe7f67fe90024ae8726fa9df36 [diff] |
Return Status::ILLEGAL_ARGUMENT if callback is nullptr AIDL documentation states that ICameraProvider::setCallback should return Status::ILLEGAL_ARGUMENT if the callback passed is a null pointer. The current implementation incorrectly returns OK even if the callback is null. This CL adds a null checks and returns Status::ILLEGAL_ARGUMENT if required. Bug: 233221359 Test: atest VtsAidlHalCameraProvider_TargetTest Change-Id: I2d705262df0f7acd403cd1eeae1bdc09a18565d2