commit | d535ead295abf3b74afb6450c83bd197f69c5a26 | [log] [tgz] |
---|---|---|
author | Zhentao Sun <robinvane@google.com> | Thu Aug 29 14:43:35 2013 -0700 |
committer | Zhentao Sun <robinvane@google.com> | Thu Aug 29 16:56:19 2013 -0700 |
tree | bdde0556fc8b716a034a17f2e40add90806aea32 | |
parent | 7be3a138d57713bbe6d624998620081807e65b71 [diff] |
Fixed b/10512887. This is an issue caused by multi-threading. If geofence provider service is connected and disconnected immediately, the ServiceWatcher can return a null service handle to the private thread used by GeofenceProxy, and this can cause NPE and system crash. This CL also fixed a hidden race conditions bug where mGeofenceHardware is not synchronized between two threads. Change-Id: I824642cd638fbb1e6799a5a1220b047ebc2556a1