aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/PM.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/PM.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/PM.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/PM.java b/juick-www/src/main/java/com/juick/www/PM.java
index ee1d7140..af5b73a4 100644
--- a/juick-www/src/main/java/com/juick/www/PM.java
+++ b/juick-www/src/main/java/com/juick/www/PM.java
@@ -191,7 +191,7 @@ public class PM {
}
if (PMQueries.createPM(sql, visitor.getUID(), uid, body)) {
- if (xmpp.isLoggedIn()) {
+ if (xmpp != null) {
Message msg = new Message();
msg.from = new JID("juick", "juick.com", null);
msg.to = new JID(Integer.toString(uid), "push.juick.com", null);