aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/CrosspostManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-17 13:33:50 +0300
committerGravatar Vitaly Takmazov2018-01-17 13:33:50 +0300
commit62df283157ff32dded77e833fbd0f4e3007acbbe (patch)
tree8e213bcc99b4f1679ba0d03ce6eef0cf8421156c /juick-api/src/main/java/com/juick/api/CrosspostManager.java
parent34e33eb5202570e8343382df7ca6a2e87385a611 (diff)
prevent nulls with StringUtils.defaultString()
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/CrosspostManager.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/CrosspostManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/CrosspostManager.java b/juick-api/src/main/java/com/juick/api/CrosspostManager.java
index 13f21074..a601d7b7 100644
--- a/juick-api/src/main/java/com/juick/api/CrosspostManager.java
+++ b/juick-api/src/main/java/com/juick/api/CrosspostManager.java
@@ -153,7 +153,7 @@ public class CrosspostManager implements ApplicationListener<MessageEvent> {
private void twitterPost(final com.juick.Message jmsg) {
crosspostService.getTwitterToken(jmsg.getUser().getUid()).ifPresent(t -> {
- String status = MessageUtils.getMessageHashTags(jmsg) + jmsg.getText();
+ String status = MessageUtils.getMessageHashTags(jmsg) + StringUtils.defaultString(jmsg.getText());
if (status.length() > 255) {
status = status.substring(0, 254) + "…";
}