diff options
author | Vitaly Takmazov | 2017-10-10 09:51:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-10 09:51:19 +0300 |
commit | 9617472d697fe92b475a08ee3b196a5a66878cae (patch) | |
tree | e446dfff56c0b7654c913f77f55bd29204cfd12a /juick-xmpp/src | |
parent | 41c4ea59c8d1929a1f8b8f8536ffa696e64e1336 (diff) |
xmpp: fix NPE
Diffstat (limited to 'juick-xmpp/src')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java index f79db78e..205e3f90 100644 --- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java +++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java @@ -209,7 +209,7 @@ public class JuickBot implements StanzaListener, AutoCloseable { } if (msg.getType() != null && msg.getType().equals(Message.Type.ERROR)) { StanzaError error = msg.getExtension(StanzaError.class); - if (error.getCondition().equals(Condition.RESOURCE_CONSTRAINT)) { + if (error != null && error.getCondition().equals(Condition.RESOURCE_CONSTRAINT)) { // offline query is full, deactivating this jid if (userService.setActiveStatusForJID(msg.getFrom().toEscapedString(), UserService.ActiveStatus.Inactive)) { logger.info("{} is inactive now", msg.getFrom()); |