aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-10 00:09:58 +0300
committerGravatar Vitaly Takmazov2018-10-24 00:00:46 +0300
commit8e6d764d6bb4391532e5376c795f634ee3898872 (patch)
tree99c5266ff0e1395b99ac5a70d2eca1e97865c856 /juick-common/src/main/java
parentee62ef1659604a373cb1c94d3cf0b1a6fd3946e8 (diff)
ActivityPub: Mentions and Hashtags
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/User.java4
1 files changed, 4 insertions, 0 deletions
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;
}