From 375cbb47ff721a26b62385211b82a7cf26db0395 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 21 Apr 2009 15:49:38 -0700 Subject: [PATCH] gps: Check for null APN name when receiving telephony notifications. Fixes bug b/1800584 Signed-off-by: Mike Lockwood --- location/java/com/android/internal/location/GpsLocationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java index c8257240e8d3..924641c8a398 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); -- 2.11.0