From 8e6d764d6bb4391532e5376c795f634ee3898872 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 10 Oct 2018 00:09:58 +0300 Subject: ActivityPub: Mentions and Hashtags --- juick-common/src/main/java/com/juick/User.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-common/src') diff --git a/juick-common/src/main/java/com/juick/User.java b/juick-common/src/main/java/com/juick/User.java index ca907987..e2e45122 100644 --- a/juick-common/src/main/java/com/juick/User.java +++ b/juick-common/src/main/java/com/juick/User.java @@ -204,7 +204,11 @@ public class User { this.unread = unread; } + @Nonnull public URI getUri() { + if (uri == null) { + uri = URI.create(StringUtils.EMPTY); + } return uri; } -- cgit v1.2.3