aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-26 15:44:13 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-26 15:44:13 +0200
commit5182a92e58d7832eb0fe5677192c8765a7df956a (patch)
tree5fc963639b6c00509c34484b4c24dc6f2ef46217
parentba2a102c070b9bf9af031c55bcf2bee999574eb0 (diff)
fixed npe when user was very quick with starting to type in startConversationactivity
-rw-r--r--src/eu/siacs/conversations/ui/StartConversationActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/StartConversationActivity.java b/src/eu/siacs/conversations/ui/StartConversationActivity.java
index d12d2878..c106955f 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) {