From 913a7c76e662ef102b7e6582a25b79210473d872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Sim=C3=A3o?= Date: Mon, 12 Jun 2023 20:03:59 -0300 Subject: [PATCH] fix(common): possible null pointer on RichText (#246) --- src/Common/RichText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/RichText.php b/src/Common/RichText.php index d7ab5536..ba98963a 100644 --- a/src/Common/RichText.php +++ b/src/Common/RichText.php @@ -177,7 +177,7 @@ public function changeHref(string $href): self $href, $this->annotations, $this->type, - $this->text->changeUrl($href), + $this->text?->changeUrl($href), $this->mention, $this->equation, );