aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-28 20:02:18 +0300
committerGravatar Vitaly Takmazov2018-05-28 20:02:18 +0300
commitbfccb7c108e791659c691cab2fa74630d4000135 (patch)
treefa33741f9d027f0755be677f0d30131da28c67eb /juick-server/src/main
parent1fc712e29e1275e87ebd6238560aa0c0eaa07d5c (diff)
xmpp: do not show null when reply quote is empty
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
index 72208fa3..a959fa71 100644
--- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java
+++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
@@ -317,7 +317,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
: messagesService.getMessage(jmsg.getMid());
replyTo = replyMessage.getUser().getName();
com.juick.Message fullReply = messagesService.getReply(jmsg.getMid(), jmsg.getRid());
- replyQuote = fullReply.getReplyQuote();
+ replyQuote = StringUtils.defaultString(fullReply.getReplyQuote());
String txt = "Reply by @" + jmsg.getUser().getName() + ":\n" + replyQuote + "\n@" + replyTo + " ";
String attachmentUrl = MessageUtils.attachmentUrl(fullReply);