fixed crashes

This commit is contained in:
Mariotaku Lee 2016-04-19 16:01:58 +08:00
parent 147a6b479d
commit b9b764875a
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
}
private void loadConversation(ParcelableStatus status, String sinceId, String maxId) {
if (status == null) return;
if (status == null || getActivity() == null) return;
final Bundle args = new Bundle();
args.putParcelable(EXTRA_ACCOUNT_KEY, status.account_key);
args.putString(EXTRA_STATUS_ID, status.is_retweet ? status.retweet_id : status.id);