aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/JuickBot.java6
1 files changed, 3 insertions, 3 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 205e3f90..a9ee9698 100644
--- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
@@ -204,9 +204,6 @@ public class JuickBot implements StanzaListener, AutoCloseable {
}
public boolean incomingMessage(Message msg) {
- if (StringUtils.isBlank(msg.getBody())) {
- return false;
- }
if (msg.getType() != null && msg.getType().equals(Message.Type.ERROR)) {
StanzaError error = msg.getExtension(StanzaError.class);
if (error != null && error.getCondition().equals(Condition.RESOURCE_CONSTRAINT)) {
@@ -218,6 +215,9 @@ public class JuickBot implements StanzaListener, AutoCloseable {
}
return false;
}
+ if (StringUtils.isBlank(msg.getBody())) {
+ return false;
+ }
String username = msg.getTo().getLocal();
User user_from;