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:
Greg Kaiser
2022-12-05 17:06:02 -08:00
parent 34e9ba08b2
commit 9b77fd1272

View File

@@ -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);
}