aboutsummaryrefslogtreecommitdiff
path: root/juick-rss/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-rss/src')
-rw-r--r--juick-rss/src/main/java/com/juick/rss/MessagesView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-rss/src/main/java/com/juick/rss/MessagesView.java b/juick-rss/src/main/java/com/juick/rss/MessagesView.java
index ae06412b..d560b4e9 100644
--- a/juick-rss/src/main/java/com/juick/rss/MessagesView.java
+++ b/juick-rss/src/main/java/com/juick/rss/MessagesView.java
@@ -102,8 +102,8 @@ public class MessagesView extends AbstractRssFeedView {
String messageUrl = String.format("http://juick.com/%s/%d", msg.getUser().getName(), msg.getMid());
String messageTitle = String.format("@%s: %s", msg.getUser().getName(), msg.getTagsString());
boolean isCode = msg.getTags().stream().anyMatch(t -> t.getName().equals("code"));
- String messageDescription = isCode ? MessageUtils.formatMessageCode(msg.getText())
- : MessageUtils.formatMessage(msg.getText());
+ String messageDescription = isCode ? MessageUtils.formatMessageCode(StringUtils.defaultString(msg.getText()))
+ : MessageUtils.formatMessage(StringUtils.defaultString(msg.getText()));
item.setLink(messageUrl);
//item.setGuid(messageUrl);
item.setTitle(messageTitle);