Location: adding NULL check for the LPP_PROFILE property

am: 8eec744ccb

Change-Id: Ia72f80b5d809190c7e2f733c8e59bf989f826973
This commit is contained in:
Ecco Park
2017-08-07 17:18:55 +00:00
committed by android-build-merger

View File

@@ -543,7 +543,9 @@ public class GnssLocationProvider implements LocationProviderInterface {
loadPropertiesFromResource(context, mProperties);
String lpp_profile = mProperties.getProperty("LPP_PROFILE");
// set the persist property LPP_PROFILE for the value
SystemProperties.set(LPP_PROFILE, lpp_profile);
if (lpp_profile != null) {
SystemProperties.set(LPP_PROFILE, lpp_profile);
}
} else {
// reset the persist property
SystemProperties.set(LPP_PROFILE, "");