Skip to content
Snippets Groups Projects
Commit 7e7f183f authored by simon@Simon-PC.lindenlab.com's avatar simon@Simon-PC.lindenlab.com
Browse files

Fixed LLControlGroup::get() template to not crash on missing items. Reviewed

by Kelly
parent 5f75cf57
No related branches found
No related tags found
No related merge requests found
...@@ -254,6 +254,7 @@ class LLControlGroup : public LLInstanceTracker<LLControlGroup, std::string> ...@@ -254,6 +254,7 @@ class LLControlGroup : public LLInstanceTracker<LLControlGroup, std::string>
else else
{ {
llwarns << "Control " << name << " not found." << llendl; llwarns << "Control " << name << " not found." << llendl;
return T();
} }
return convert_from_llsd<T>(value, type, name); return convert_from_llsd<T>(value, type, name);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment