diff options
author | Vitaly Takmazov | 2017-02-13 14:48:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-02-13 14:48:13 +0300 |
commit | 0ad9a927646d1f63868317fe2ebf7131ebe28b22 (patch) | |
tree | e16564886e644743660643846cb5b8def4b2ccdf /juick-xmpp/src | |
parent | 7d04ea9cc0abba7750f98a7586f158f1e03c2343 (diff) |
juick-xmpp: fix NPE
Diffstat (limited to 'juick-xmpp/src')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java | 2 |
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; } |