summaryrefslogtreecommitdiff
path: root/indra/newview/llslurl.cpp
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-12 17:02:47 +0200
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-12 18:32:43 +0200
commit70988ede9e924960c37cd01797c9a435b557acec (patch)
treeb9e274daf1af27591984c8980073fb7fb5f106d0 /indra/newview/llslurl.cpp
parentb134e91d2a2e7ff97e6f906d6ef36177e1dddeab (diff)
SL-20422 Clicking the 'Bring it back' link on Aditi displays a teleport alert
Diffstat (limited to 'indra/newview/llslurl.cpp')
-rw-r--r--indra/newview/llslurl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llslurl.cpp b/indra/newview/llslurl.cpp
index a3a8247268..a9b7b0e417 100644
--- a/indra/newview/llslurl.cpp
+++ b/indra/newview/llslurl.cpp
@@ -112,6 +112,13 @@ LLSLURL::LLSLURL(const std::string& slurl)
// and the slurl type (APP or LOCATION)
if(slurl_uri.scheme() == LLSLURL::SLURL_SECONDLIFE_SCHEME)
{
+ if (path_array.size() == 0)
+ {
+ // um, we need a path...
+ mType = EMPTY;
+ return;
+ }
+
// parse a maingrid style slurl. We know the grid is maingrid
// so grab it.
// A location slurl for maingrid (with the special schemes) can be in the form