From 653053e30310d1719dbdfecf374adcc4df3066ea Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 16 Feb 2011 22:32:44 -0600 Subject: [PATCH] Fixed LLErrors killing the viewer when no username is provided on login. --- indra/newview/llpanellogin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index b16fea04f..be7dd209c 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -105,7 +105,7 @@ BOOL LLPanelLogin::sCapslockDidNotification = FALSE; static bool nameSplit(const std::string& full, std::string& first, std::string& last) { std::vector fragments; boost::algorithm::split(fragments, full, boost::is_any_of(" .")); - if (fragments.size() == 0) + if (!fragments.size() || !fragments[0].length()) return false; first = fragments[0]; if (fragments.size() == 1)