OSDN Git Service

Protect against destroying uncreated values
authorAlan Newberger <alann@google.com>
Fri, 24 Jul 2015 17:47:55 +0000 (10:47 -0700)
committerAlan Newberger <alann@google.com>
Fri, 24 Jul 2015 17:47:55 +0000 (10:47 -0700)
commit4df3011e2f3680a80ecc89c817ba528b2a578f0f
treebe274966d12572f78744666f1def8ea705897b2a
parentae474d0b2967b3995a4e1e334d6689b0cd9a38c9
Protect against destroying uncreated values

Though we attempt to minimize lifecycle impact by exiting onCreate
early due to inadequate permissions, we need to protect against
touching fields in onDestroy that we did not initialize in onCreate.

BUG=22718094

Change-Id: I49adcbbed005c4efa785458aa398e61488cfceb0
src/com/android/camera/CameraActivity.java