aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 17:37:02 +0300
committerGravatar Vitaly Takmazov2016-01-16 17:37:02 +0300
commita4eb42bf34b42d0abb0ed0bf2619a0ba96edd0d8 (patch)
treeb305b44ffb6a05e2f8a5e5e1f0ac4cb6bf5aaa9f /src/main/java/com
parent1df19b47f7f463e6cafa7dcf877cb42967fff166 (diff)
fix possible NPE
Diffstat (limited to 'src/main/java/com')
-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