summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-06-23 12:48:06 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-06-23 12:48:06 +0300
commit1b9c4e259974c93e781038e1cbc8c0428b265600 (patch)
tree7c0e398e3672136cb5ba26d1159bf3ad967f45ab
parent84b01805736c8927ef9fea8ec13f9f14ecdc4ce1 (diff)
MAINT-6516 FIXED Crash in updateEditFieldValues() while in Pathfinding -> Linksets floater
-rw-r--r--indra/newview/llpathfindinglinksetlist.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpathfindinglinksetlist.cpp b/indra/newview/llpathfindinglinksetlist.cpp
index b886e46765..eb7b95552e 100644
--- a/indra/newview/llpathfindinglinksetlist.cpp
+++ b/indra/newview/llpathfindinglinksetlist.cpp
@@ -204,7 +204,10 @@ void LLPathfindingLinksetList::parseLinksetListData(const LLSD& pLinksetListData
{
const std::string& uuid(linksetDataIter->first);
const LLSD& linksetData = linksetDataIter->second;
- LLPathfindingObjectPtr linksetPtr(new LLPathfindingLinkset(uuid, linksetData));
- objectMap.insert(std::pair<std::string, LLPathfindingObjectPtr>(uuid, linksetPtr));
+ if(linksetData.size() != 0)
+ {
+ LLPathfindingObjectPtr linksetPtr(new LLPathfindingLinkset(uuid, linksetData));
+ objectMap.insert(std::pair<std::string, LLPathfindingObjectPtr>(uuid, linksetPtr));
+ }
}
}