From 4f4489ee515754a805bfd6a1420c694ec060979a Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Thu, 15 Jun 2023 17:36:48 +0530 Subject: [PATCH] fix the activity center crash when replying with an image (#16281) --- src/status_im/utils/http.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/utils/http.cljs b/src/status_im/utils/http.cljs index e299114991..d3a6098278 100644 --- a/src/status_im/utils/http.cljs +++ b/src/status_im/utils/http.cljs @@ -192,4 +192,5 @@ (defn replace-port [url new-port] - (string/replace url #"(:\d+)" (str ":" new-port))) + (when url + (string/replace url #"(:\d+)" (str ":" new-port))))