Skip to content

Commit

Permalink
fix(common): possible null pointer on RichText (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosimao authored Jun 12, 2023
1 parent fceeb54 commit 913a7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 913a7c7

Please sign in to comment.