Merge "Initialize intent to avoid nullpointer exception"

This commit is contained in:
TreeHugger Robot
2021-10-21 15:09:27 +00:00
committed by Android (Google) Code Review

View File

@@ -112,6 +112,7 @@ public class UsbResolverActivity extends ResolverActivity {
mOtherProfileIntent.putParcelableArrayListExtra(EXTRA_RESOLVE_INFOS,
rListOtherProfile);
} else {
mOtherProfileIntent = new Intent();
mOtherProfileIntent.setComponent(ComponentName.unflattenFromString(
this.getResources().getString(
com.android.internal.R.string.config_usbConfirmActivity)));