OSDN Git Service

Simplistic fix for initialization race
authorStan Chesnutt <chesnutt@google.com>
Fri, 6 Sep 2013 20:57:16 +0000 (13:57 -0700)
committerStan Chesnutt <chesnutt@google.com>
Fri, 6 Sep 2013 20:57:16 +0000 (13:57 -0700)
commit8183aac3eb27d7b2fe885baa3dd1498a0acc9dd2
tree4feb912f1f90b2ffa1a69e13e69527deb360fa52
parentdc8d704899716e97e59af8b6fe5f549e0229eda6
Simplistic fix for initialization race

The monkey run described in the bug report hits this server at a
vulnerable point, and the RuntimeException causes a subsequent NPE.

Note that I'm making this fixup CL "blind", as monkey running on
my platform (mantaray) doesn't show this specific failure.

http://b/9438025

Change-Id: I8e16cf5cfc21dcf3061f31b0741525881bbf9724
services/java/com/android/server/CountryDetectorService.java