Fix NPE

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/ConversationFragment.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/ui/ConversationFragment.java 🔗

@@ -3423,7 +3423,7 @@ public class ConversationFragment extends XmppFragment
 
     @Override
     public void refreshForNewCaps(final Set<Jid> newCapsJids) {
-        if (newCapsJids.isEmpty() || newCapsJids.contains(conversation.getJid().asBareJid())) {
+        if (newCapsJids.isEmpty() || (conversation != null && newCapsJids.contains(conversation.getJid().asBareJid()))) {
             refreshCommands(true);
         }
     }