commit | 15a6600d68847fc9505fe4a89d252469f80deb7a | [log] [tgz] |
---|---|---|
author | Jay Wang <jaywang@codeaurora.org> | Tue May 24 16:47:15 2016 -0700 |
committer | Jay Wang <jaywang@codeaurora.org> | Wed Jun 01 17:06:20 2016 -0700 |
tree | 1c11753dc552e5680ea0c2113a174f151581dcf7 | |
parent | dba00aac4e44a91bc55b0aabca9f191d03994edf [diff] |
SnapdragonCamera: Fixed NPE during camera resume There is a race condition that mMenu is not initialized before UI thread accessing the object. This can happen if the initialization of UI thread is completed before camera thread opens the camera device. Since the camera mMenu instance is created in the callback of onCameraOpened(), UI thread needs to check if mMenu is initialized or not before accessing it. Change-Id: Ic8ffc50b7334714de9a57b22f8229bc0ce868901 CRs-Fixed: 1013999