Fix NPE
(cherry picked from commit 10aab53ff232bb7d0966dc90315c8d0497cfeaf3)
This commit is contained in:
parent
6158da8cf7
commit
c4365ed61d
1 changed files with 3 additions and 3 deletions
|
@ -512,7 +512,7 @@ public class ConversationsOverviewFragment extends XmppFragment {
|
|||
|
||||
@Override
|
||||
protected void refresh() {
|
||||
if (this.binding == null || this.activity == null) {
|
||||
if (binding == null || this.activity == null) {
|
||||
Log.d(Config.LOGTAG,"ConversationsOverviewFragment.refresh() skipped updated because view binding or activity was null");
|
||||
return;
|
||||
}
|
||||
|
@ -554,8 +554,8 @@ public class ConversationsOverviewFragment extends XmppFragment {
|
|||
}
|
||||
setupSwipe();
|
||||
|
||||
if (binding.overviewSnackbar != null) binding.overviewSnackbar.setVisibility(View.GONE);
|
||||
if (activity.xmppConnectionService == null) return;
|
||||
if (activity.xmppConnectionService == null || binding == null || binding.overviewSnackbar == null) return;
|
||||
binding.overviewSnackbar.setVisibility(View.GONE);
|
||||
for (final var account : activity.xmppConnectionService.getAccounts()) {
|
||||
if (activity.getPreferences().getBoolean("no_mam_pref_warn:" + account.getUuid(), false)) continue;
|
||||
if (account.mamPrefs() != null && !"always".equals(account.mamPrefs().getAttribute("default"))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue