summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-09-07 12:14:27 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-09-07 12:14:27 +0300
commitf9ed4fedab7c7deab20aeddd88ab40f3958af5a3 (patch)
treea2be4a6e78b2b07c0b5cee543f9ae88a2876f348 /indra
parent1557cd8fe2733c32c7788daf752fe23c7190947f (diff)
SL-13878 FIXED The no title location appears in 'Teleport history' after adding a blank line to teleport_history.txt
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llteleporthistorystorage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llteleporthistorystorage.cpp b/indra/newview/llteleporthistorystorage.cpp
index 8a5704939a..658ab453d2 100644
--- a/indra/newview/llteleporthistorystorage.cpp
+++ b/indra/newview/llteleporthistorystorage.cpp
@@ -201,6 +201,12 @@ void LLTeleportHistoryStorage::load()
std::string line;
while (std::getline(file, line))
{
+ if (line.empty())
+ {
+ LL_WARNS() << "Teleport history contains empty line."<< LL_ENDL;
+ continue;
+ }
+
LLSD s_item;
std::istringstream iss(line);
if (parser->parse(iss, s_item, line.length()) == LLSDParser::PARSE_FAILURE)