From 07903dbec6fe386940fe373f778e69a153a28e6f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 10 Oct 2018 09:06:27 +0300 Subject: Fix NPE --- juick-common/src/main/java/com/juick/util/MessageUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3