diff options
| author | Graham Linden <graham@lindenlab.com> | 2018-06-29 00:16:32 +0100 |
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2018-06-29 00:16:32 +0100 |
| commit | 27679824ff756279f035c4c7f11fe7dfacc25754 (patch) | |
| tree | 0a29392325371fdba03598089d2277c531df08e9 /indra/newview/lllogininstance.cpp | |
| parent | 0aa2e5b1a36f917512c054414d97c5a4d3a4d544 (diff) | |
Handle grids.xml w/ single entry instead of an array.
Fix crash when no login URIs are found for a given grid
(does not happen after fixing above, but should not crash either).
Diffstat (limited to 'indra/newview/lllogininstance.cpp')
| -rw-r--r-- | indra/newview/lllogininstance.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lllogininstance.cpp b/indra/newview/lllogininstance.cpp index bc93fa2c20..deef3dbce7 100644 --- a/indra/newview/lllogininstance.cpp +++ b/indra/newview/lllogininstance.cpp @@ -113,6 +113,11 @@ void LLLoginInstance::connect(LLPointer<LLCredential> credentials) { std::vector<std::string> uris; LLGridManager::getInstance()->getLoginURIs(uris); + if (uris.size() < 1) + { + LL_WARNS() << "Failed to get login URIs during connect. No connect for you!" << LL_ENDL; + return; + } connect(uris.front(), credentials); } |
