Skip to content
Snippets Groups Projects
Commit be6deace authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

Gnss:fix NPE due to the arraymap store the null key.

 PersistableBundle store the data use the ArrayMap,so the null key may put into the map.So we should make a judgment to prevent the systemserver crash.

Bug: 337781283
Change-Id: I9ce8c86aa9c9142e3b413bdb1eaaf51099592e72
parent adfb344c
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ public class GnssConfiguration {
configs = CarrierConfigManager.getDefaultConfig();
}
for (String configKey : configs.keySet()) {
if (configKey.startsWith(CarrierConfigManager.Gps.KEY_PREFIX)) {
if (configKey != null && configKey.startsWith(CarrierConfigManager.Gps.KEY_PREFIX)) {
String key = configKey
.substring(CarrierConfigManager.Gps.KEY_PREFIX.length())
.toUpperCase();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment