OSDN Git Service

Fix NPE in AsyncRunner when runner is stopped immediately after start.
authorEino-Ville Talvala <etalvala@google.com>
Thu, 20 Oct 2011 23:36:01 +0000 (16:36 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Fri, 21 Oct 2011 00:12:04 +0000 (17:12 -0700)
commitf52b953c0acb730289c6f5a664ec5624d6ba5d36
tree3afb26bf31646d48a79b09027accaa61ea7a8b41
parent0ea5e57c6cc314a5d3a14aa0745c56c2a9101f0f
Fix NPE in AsyncRunner when runner is stopped immediately after start.

If the AsyncTask is cancelled immediately after being started, the
background worker function may never be called, and variables it
initializes may not be set.

As used in Camera, this could lead to a crash if the right sequence
of start/stop actions is taken.

Bug: 5493458
Change-Id: Idee9c3de1cf1dc999acc57c6aefcae4797582bdb
mca/filterfw/java/android/filterfw/core/AsyncRunner.java