From fb970d00f2baa397accc7001894b899ee4bb76f9 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 30 May 2023 12:17:14 -0500 Subject: [PATCH] Fix NPE --- src/main/java/eu/siacs/conversations/entities/Conversation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 79b90936a..3d0d08faf 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1392,7 +1392,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl if (pager.getChildAt(0) != null) page1 = pager.getChildAt(0); if (pager.getChildAt(1) != null) page2 = pager.getChildAt(1); - if (page2.findViewById(R.id.commands_view) == null) { + if (page2 != null && page2.findViewById(R.id.commands_view) == null) { page1 = null; page2 = null; } -- 2.45.2