commit | cbf3ba5a65b2377fc5e0f18b0f7b5da6f0019c96 | [log] [tgz] |
---|---|---|
author | Lars Greiss <kufikugel@googlemail.com> | Wed Jan 15 05:08:26 2014 +0100 |
committer | broodplank <guichardflorent@gmail.com> | Sat Feb 15 09:16:22 2014 +0100 |
tree | 57824ce433e95bbf0010c3dd257802174b35f2a5 | |
parent | 1cc5e6a4a157c7ddce5f257fff887c6406511fe0 [diff] |
Camera2: fix possible NPE on configurationchange Step to reproduce: - open camera from lockscreen - during it opens turn your phone - result: crash Due that the camera is in middle of the initialization mParameters is null at this point. Just check against null to prevend the crash. The correct resizing happens so or so during the ongoing initialization Thanks TJKV from xda for the report Change-Id: I0aab385172d7ff571adf525004305fd3b34d499c