diff options
author | Vitaly Takmazov | 2016-01-16 17:37:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-01 09:50:56 +0300 |
commit | 77d86f9aaf5aa20542baa25685bb70bd77ae9b16 (patch) | |
tree | b305b44ffb6a05e2f8a5e5e1f0ac4cb6bf5aaa9f /src/main | |
parent | 7668b411895053aebb1e6b122a9ba54301a257ba (diff) |
fix possible NPE
Diffstat (limited to 'src/main')
-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 |