Avoid NPE when logging the entry point to Settings

The populator class that serializes the proto uses a switch
and throws an NPE.

Bug:19911288
Change-Id: Id0fa371b3c64e706e14a13bb6e643406f94be035
main
Jatin Matani 2015-03-24 12:20:23 -07:00
parent cb27c4fe2e
commit 2fb8e5eecf
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public final class SettingsActivity extends PreferenceActivity {
}
StatsUtils.onSettingsActivity(
intent.hasExtra(EXTRA_ENTRY_KEY) ? intent.getStringExtra(EXTRA_ENTRY_KEY)
: intent.getStringExtra(EXTRA_ENTRY_VALUE_SYSTEM_SETTINGS));
: EXTRA_ENTRY_VALUE_SYSTEM_SETTINGS);
}
@Override