diff options
author | Tofu Buzzard <no-email> | 2010-11-09 10:05:17 +0000 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2010-11-09 10:05:17 +0000 |
commit | caa53cc8cdd69bd48bd6c07fa6c98234e81f8a42 (patch) | |
tree | 682c2571bad71cf52e5157f4703163ca2ce21f57 /indra/newview/llpanelgrouproles.cpp | |
parent | 179e9e37ecbdcd1ad2133733047707ddd42e8c30 (diff) | |
parent | b657516f72f016a918e0ff627105dd380a94394c (diff) |
merge up from v-d
Diffstat (limited to 'indra/newview/llpanelgrouproles.cpp')
-rw-r--r-- | indra/newview/llpanelgrouproles.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpanelgrouproles.cpp b/indra/newview/llpanelgrouproles.cpp index 0d1d96eae6..d1362d7922 100644 --- a/indra/newview/llpanelgrouproles.cpp +++ b/indra/newview/llpanelgrouproles.cpp @@ -1576,6 +1576,7 @@ void LLPanelGroupMembersSubTab::update(LLGroupChange gc) void LLPanelGroupMembersSubTab::addMemberToList(LLUUID id, LLGroupMemberData* data) { + if (!data) return; LLUIString donated = getString("donation_area"); donated.setArg("[AREA]", llformat("%d", data->getContribution())); @@ -1616,9 +1617,12 @@ void LLPanelGroupMembersSubTab::onNameCache(const LLUUID& update_id, const LLUUI std::string fullname; gCacheName->getFullName(id, fullname); - if (matchesSearchFilter(fullname)) + + LLGroupMemberData* data; + // trying to avoid unnecessary hash lookups + if (matchesSearchFilter(fullname) && ((data = gdatap->mMembers[id]) != NULL)) { - addMemberToList(id, gdatap->mMembers[id]); + addMemberToList(id, data); if(!mMembersList->getEnabled()) { mMembersList->setEnabled(TRUE); |