commit | 3d145ae9158eca80c4cbfe436c5b8b04cb514c46 | [log] [tgz] |
---|---|---|
author | Yin-Chia Yeh <yinchiayeh@google.com> | Thu Jul 27 12:47:03 2017 -0700 |
committer | Yin-Chia Yeh <yinchiayeh@google.com> | Thu Jul 27 12:47:03 2017 -0700 |
tree | e285579dece0d6d7e120d1a743cc3e6c327291a6 | |
parent | dfcfad27da2216229b0141a736218ca06340ed5c [diff] |
Camera: add proper nullptr check Test: CTS Bug: 64118349 Change-Id: I2fd5c3f32d4e13560a88f4657c4f25faedd869ba
diff --git a/services/camera/libcameraservice/device3/Camera3Device.cpp b/services/camera/libcameraservice/device3/Camera3Device.cpp index 6421695..69b1d7d 100644 --- a/services/camera/libcameraservice/device3/Camera3Device.cpp +++ b/services/camera/libcameraservice/device3/Camera3Device.cpp
@@ -2350,7 +2350,9 @@ mErrorCause = errorCause; - mRequestThread->setPaused(true); + if (mRequestThread != nullptr) { + mRequestThread->setPaused(true); + } internalUpdateStatusLocked(STATUS_ERROR); // Notify upstream about a device error