aboutsummaryrefslogtreecommitdiff
path: root/juick-common
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-10 09:06:27 +0300
committerGravatar Vitaly Takmazov2018-10-10 09:06:27 +0300
commit07903dbec6fe386940fe373f778e69a153a28e6f (patch)
tree081f7dd62f2d7a2974257fb9cb43cec6afd3d15b /juick-common
parent26c7b4d910165f9a67cbfd6bfea97257ebf33a08 (diff)
Fix NPE
Diffstat (limited to 'juick-common')
-rw-r--r--juick-common/src/main/java/com/juick/util/MessageUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/util/MessageUtils.java b/juick-common/src/main/java/com/juick/util/MessageUtils.java
index 4de68cb9..62616bdf 100644
--- a/juick-common/src/main/java/com/juick/util/MessageUtils.java
+++ b/juick-common/src/main/java/com/juick/util/MessageUtils.java
@@ -299,7 +299,7 @@ public class MessageUtils {
input = input.replace(urlMatcher.group(0), uriComponentsBuilder.build().toUriString());
}
}
- } catch (IllegalArgumentException e) {
+ } catch (IllegalArgumentException | NullPointerException e) {
return input;
}
return input;