Skip to content
Snippets Groups Projects
Commit e03f1521 authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

MAINT-5023 URIparser crash in LLUrlEntryBase::urlToLabelWithGreyQuery

parent 90573bad
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,18 @@ void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str) ...@@ -124,6 +124,18 @@ void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str)
return; return;
} }
if(textRange.first == NULL)
{
LL_WARNS() << "textRange.first is NULL for uri: " << mNormalizedUri << LL_ENDL;
return;
}
if(textRange.afterLast == NULL)
{
LL_WARNS() << "textRange.afterLast is NULL for uri: " << mNormalizedUri << LL_ENDL;
return;
}
S32 len = textRange.afterLast - textRange.first; S32 len = textRange.afterLast - textRange.first;
if (len) if (len)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment