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, );