aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/Message.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 17:37:02 +0300
committerGravatar Vitaly Takmazov2016-07-01 09:50:56 +0300
commit77d86f9aaf5aa20542baa25685bb70bd77ae9b16 (patch)
treeb305b44ffb6a05e2f8a5e5e1f0ac4cb6bf5aaa9f /src/main/java/com/juick/Message.java
parent7668b411895053aebb1e6b122a9ba54301a257ba (diff)
fix possible NPE
Diffstat (limited to 'src/main/java/com/juick/Message.java')
-rw-r--r--src/main/java/com/juick/Message.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java
index 03573aed..ea1d550b 100644
--- a/src/main/java/com/juick/Message.java
+++ b/src/main/java/com/juick/Message.java
@@ -81,7 +81,9 @@ public class Message {
}
public void parseTags(String strTags) {
- Tags.addAll(Arrays.asList(strTags.split(" ")));
+ if (strTags != null) {
+ Tags.addAll(Arrays.asList(strTags.split(" ")));
+ }
}
@Override