mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Fix NULL check
We were checking 'info' twice and not checking 'msgs'. So we fix that up, and fix a typo in the message. Bug: 219974678 Test: TreeHugger Change-Id: Ia52178b758dc3d9753731b043da01743ff59e10c
This commit is contained in:
@@ -714,8 +714,8 @@ Status ExternalCameraDeviceSession::switchToOffline(
|
||||
return Status::ILLEGAL_ARGUMENT;
|
||||
}
|
||||
|
||||
if (info == nullptr || results == nullptr || info == nullptr || session == nullptr) {
|
||||
ALOGE("%s, output arguments (%p, %p, %p, %p) much not be null", __FUNCTION__, msgs, results,
|
||||
if (msgs == nullptr || results == nullptr || info == nullptr || session == nullptr) {
|
||||
ALOGE("%s, output arguments (%p, %p, %p, %p) must not be null", __FUNCTION__, msgs, results,
|
||||
info, session);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user