Add null check for settings default preference controller
Test: local built and tested Bug: 281771729 Change-Id: Ib3467c22262125ac7dac00eb9ea68516ddf53b5a
This commit is contained in:
@@ -156,7 +156,7 @@ public class DefaultCombinedPreferenceController extends DefaultAppPreferenceCon
|
||||
final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
|
||||
|
||||
// If there are multiple autofill services then pick the first one.
|
||||
if (mKey.startsWith(serviceInfo.packageName)) {
|
||||
if (mKey != null && mKey.startsWith(serviceInfo.packageName)) {
|
||||
final String settingsActivity;
|
||||
try {
|
||||
settingsActivity =
|
||||
|
Reference in New Issue
Block a user