Merge "Fix NPE in onDestroy() when launched without args"

This commit is contained in:
Mark Renouf
2021-10-06 15:32:28 +00:00
committed by Android (Google) Code Review

View File

@@ -901,7 +901,8 @@ public class ResolverActivity extends Activity implements
if (!isChangingConfigurations() && mPickOptionRequest != null) {
mPickOptionRequest.cancel();
}
if (mMultiProfilePagerAdapter.getActiveListAdapter() != null) {
if (mMultiProfilePagerAdapter != null
&& mMultiProfilePagerAdapter.getActiveListAdapter() != null) {
mMultiProfilePagerAdapter.getActiveListAdapter().onDestroy();
}
}