From 69ce46f949649c8d1dd7d29420bf86a8be8e0a07 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 1 Aug 2022 15:47:14 -0500 Subject: [PATCH] NPE --- .../java/eu/siacs/conversations/entities/Conversation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index bb7dee1ad..456ebe5db 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1243,12 +1243,12 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl sessions = new ArrayList<>(); notifyDataSetChanged(); } - mTabs.setVisibility(View.VISIBLE); + if (mTabs != null) mTabs.setVisibility(View.VISIBLE); } public void hide() { - mPager.setCurrentItem(0); - mTabs.setVisibility(View.GONE); + if (mPager != null) mPager.setCurrentItem(0); + if (mTabs != null) mTabs.setVisibility(View.GONE); sessions = null; notifyDataSetChanged(); } -- 2.45.2