diff options
author | Vitaly Takmazov | 2016-01-16 17:37:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-16 17:37:02 +0300 |
commit | a4eb42bf34b42d0abb0ed0bf2619a0ba96edd0d8 (patch) | |
tree | b305b44ffb6a05e2f8a5e5e1f0ac4cb6bf5aaa9f /src/main/java/com/juick | |
parent | 1df19b47f7f463e6cafa7dcf877cb42967fff166 (diff) |
fix possible NPE
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/Message.java | 4 |
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 |