summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-08-17 10:29:23 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-08-17 10:29:23 -0700
commit56e7ba2928bce62283a62ad1c9d9f1ec7b54c24c (patch)
treeec8c8a965e72dba5981e755c8c6a509e7f9d39de
parentffbd2426f07474a95fefa3b2f4fe7eb4d4329af5 (diff)
parentc6cc836f88349e871c2aa7579223c9220e95e5b0 (diff)
Merge change 21510 into eclair
* changes: LocationManagerService: Add NullPointerException to avoid change in behavior.
-rw-r--r--services/java/com/android/server/LocationManagerService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/LocationManagerService.java b/services/java/com/android/server/LocationManagerService.java
index f8d0e42f62e1..2201b55beaa2 100644
--- a/services/java/com/android/server/LocationManagerService.java
+++ b/services/java/com/android/server/LocationManagerService.java
@@ -1100,6 +1100,11 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
}
public boolean sendExtraCommand(String provider, String command, Bundle extras) {
+ if (provider == null) {
+ // throw NullPointerException to remain compatible with previous implementation
+ throw new NullPointerException();
+ }
+
// first check for permission to the provider
checkPermissionsSafe(provider);
// and check for ACCESS_LOCATION_EXTRA_COMMANDS