diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 09c8a82c9..989e92ce7 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -375,7 +375,7 @@ LLTextEditor::~LLTextEditor() const std::string& LLTextEditor::getMenuSegmentUrl() const { auto segment = getSegmentAtLocalPos(mLastContextMenuX, mLastContextMenuY); - auto style = segment->getStyle(); + auto style = segment ? segment->getStyle() : nullptr; return style ? style->getLinkHREF() : LLStringUtil::null; }