From 28317a7396556e16f58023bd5b22bec670270d4e Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 6 Jan 2025 12:41:11 -0500 Subject: [PATCH] Fix NPE (cherry picked from commit 7c48dfe5dff0a5598604af34a4c82f67e1d80ca7) --- .../siacs/conversations/ui/ConversationsOverviewFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java index 24116bcc7..6370374ed 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java @@ -542,7 +542,7 @@ public class ConversationsOverviewFragment extends XmppFragment { } setupSwipe(); - binding.overviewSnackbar.setVisibility(View.GONE); + if (binding.overviewSnackbar != null) binding.overviewSnackbar.setVisibility(View.GONE); if (activity.xmppConnectionService == null) return; for (final var account : activity.xmppConnectionService.getAccounts()) { if (activity.getPreferences().getBoolean("no_mam_pref_warn:" + account.getUuid(), false)) continue;