Fix possible NPE

This commit is contained in:
Arne 2024-09-20 16:31:54 +02:00
parent 1f864752fd
commit 06f2a21462

View file

@ -1168,7 +1168,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
savedInstanceState.putParcelable("intent", pendingIntent != null ? pendingIntent : getIntent());
savedInstanceState.putLong("mainFilter", mainFilter);
savedInstanceState.putSerializable("selectedTag", selectedTag);
savedInstanceState = binding.drawer.saveInstanceState(savedInstanceState);
if (binding.drawer != null) savedInstanceState = binding.drawer.saveInstanceState(savedInstanceState);
if (accountHeader != null) savedInstanceState = accountHeader.saveInstanceState(savedInstanceState);
super.onSaveInstanceState(savedInstanceState);
}