aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-02-13 14:48:13 +0300
committerGravatar Vitaly Takmazov2017-02-13 14:48:13 +0300
commit0ad9a927646d1f63868317fe2ebf7131ebe28b22 (patch)
treee16564886e644743660643846cb5b8def4b2ccdf /juick-xmpp/src/main/java
parent7d04ea9cc0abba7750f98a7586f158f1e03c2343 (diff)
juick-xmpp: fix NPE
Diffstat (limited to 'juick-xmpp/src/main/java')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
index c0d5df81..0fff6af3 100644
--- a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
@@ -158,7 +158,7 @@ public class JuickBot implements StanzaListener, AutoCloseable {
}
public boolean incomingMessage(Message msg) {
- if (StringUtils.isBlank(msg.getBody()) || msg.getType().equals(Message.Type.ERROR)) {
+ if (StringUtils.isBlank(msg.getBody()) || (msg.getType() != null && msg.getType().equals(Message.Type.ERROR))) {
return false;
}