Merge "Fix NPE in onDestroy() when launched without args"
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user