diff --git a/ui/text/text.cpp b/ui/text/text.cpp index 3b162e8..25c983a 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -373,8 +373,10 @@ void String::ExtendedWrap::adjustFrom(const ExtendedWrap *other) { reinterpret_cast(otherText + raw(this) - raw(other))); }; if (data) { - if (data->spoiler) { - adjust(data->spoiler->link); + if (const auto spoiler = data->spoiler.get()) { + if (spoiler->link) { + adjust(spoiler->link); + } } for (auto "e : data->quotes) { if (quote.copy) {