From 5182a92e58d7832eb0fe5677192c8765a7df956a Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sat, 26 Jul 2014 15:44:13 +0200 Subject: [PATCH] fixed npe when user was very quick with starting to type in startConversationactivity --- .../siacs/conversations/ui/StartConversationActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/ui/StartConversationActivity.java b/src/eu/siacs/conversations/ui/StartConversationActivity.java index d12d2878d..c106955ff 100644 --- a/src/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/eu/siacs/conversations/ui/StartConversationActivity.java @@ -482,8 +482,10 @@ public class StartConversationActivity extends XmppActivity { } protected void filter(String needle) { - this.filterContacts(needle); - this.filterConferences(needle); + if (xmppConnectionServiceBound) { + this.filterContacts(needle); + this.filterConferences(needle); + } } protected void filterContacts(String needle) {