summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-04-21 15:49:38 -0700
committerMike Lockwood <lockwood@android.com>2009-04-21 15:49:38 -0700
commit375cbb47ff721a26b62385211b82a7cf26db0395 (patch)
tree293cd5c5b157e8e50babc0cce8bf78cb7a1e87b0 /location
parentbe456ac934c3d9839cdac00bd331fe5d82727246 (diff)
downloadframeworks_base-375cbb47ff721a26b62385211b82a7cf26db0395.zip
frameworks_base-375cbb47ff721a26b62385211b82a7cf26db0395.tar.gz
frameworks_base-375cbb47ff721a26b62385211b82a7cf26db0395.tar.bz2
gps: Check for null APN name when receiving telephony notifications.
Fixes bug b/1800584 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location')
-rw-r--r--location/java/com/android/internal/location/GpsLocationProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java
index c825724..924641c 100644
--- a/location/java/com/android/internal/location/GpsLocationProvider.java
+++ b/location/java/com/android/internal/location/GpsLocationProvider.java
@@ -218,7 +218,7 @@ public class GpsLocationProvider extends LocationProviderImpl {
if (Config.LOGD) {
Log.d(TAG, "state: " + state + " apnName: " + apnName + " reason: " + reason);
}
- if ("CONNECTED".equals(state)) {
+ if ("CONNECTED".equals(state) && apnName != null && apnName.length() > 0) {
mSuplApn = apnName;
if (mSuplDataConnectionState == SUPL_DATA_CONNECTION_OPENING) {
native_supl_data_conn_open(mSuplApn);