summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/location/UpdateCountryService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/common/location/UpdateCountryService.java')
-rw-r--r--src/com/android/contacts/common/location/UpdateCountryService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/location/UpdateCountryService.java b/src/com/android/contacts/common/location/UpdateCountryService.java
index e339306f..9403187e 100644
--- a/src/com/android/contacts/common/location/UpdateCountryService.java
+++ b/src/com/android/contacts/common/location/UpdateCountryService.java
@@ -38,6 +38,10 @@ public class UpdateCountryService extends IntentService {
@Override
protected void onHandleIntent(Intent intent) {
+ if (intent == null) {
+ Log.d(TAG, "onHandleIntent: could not handle null intent");
+ return;
+ }
if (ACTION_UPDATE_COUNTRY.equals(intent.getAction())) {
final Location location = (Location) intent.getParcelableExtra(KEY_INTENT_LOCATION);
final String country = getCountryFromLocation(getApplicationContext(), location);