Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56e7ba29 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 21510 into eclair

* changes:
  LocationManagerService: Add NullPointerException to avoid change in behavior.
parents ffbd2426 c6cc836f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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