STORM-1458 ([crashhunters] crash at LLParticipantList::LLParticipantListMenu::isGroupModerator() [secondlife-bin llparticipantlist.cpp])
Review Request #404 - Created July 20, 2011 and submitted
Paul ProductEngine | Reviewers | ||
viewer | |||
storm-1458 | |||
None | viewer-development |
- Added null checking
Posted (July 20, 2011, 11:31 a.m.)
-
indra/newview/llparticipantlist.cpp (Diff revision 1) -
Either this comment should be moved inside the if-block or it should be formulated as a question: // Is agent in group call? Otherwise it might give the wrong impression that it is already known that the agent is in a group call at the point where the comment appears. Also, is this really about group calls (i.e. voice) or rather/also group chat (i.e. text).
-
indra/newview/llparticipantlist.cpp (Diff revision 1) -
I think if the speaker manager is missing (pointer is null), at least a warning in the log would be warranted. I'm not sure whether the same applies for missing (i.e. null) speaker. (Could the agent have left the group call/chat meanwhile thus not be in the speaker list anymore?)
-
indra/newview/llparticipantlist.cpp (Diff revision 1) -
This comment should read // Is agent a moderator? or similar.
Review request changed
Updated (July 21, 2011, 3:27 a.m.)
-
- added Diff r2
Updated diff according to Boroondas' commentaries
Posted (July 21, 2011, 4:21 a.m.)
-
indra/newview/llparticipantlist.cpp (Diff revision 2) -
Hmm ... looking at the comment at https://bitbucket.org/lindenlab/viewer-development/src/d8c37b383028/indra/newview/llagent.h#cl-705 and the implementation of isInGroup at https://bitbucket.org/lindenlab/viewer-development/src/d8c37b383028/indra/newview/llagent.cpp#cl-2414 , this test actually checks whether the agent in question is a member of the group which has an UUID matching the conversation's session ID. Because the session IDs of group chats will match the UUID of the respective groups (and all other chat session types should have session IDs not matching any group UUIDs), this also tells us whether the session is a group chat. So maybe the comment should be yet different to reflect this. (Sorry, should have looked up this stuff for the first review already.) Maybe: // Is session a group chat? (It is if the session ID is the UUID of a group of which the agent is a member.) I wonder whether there is a better way (as in: making less assumptions / not using an agent as pivot) to test for this.
Review request changed
Updated (July 21, 2011, 7:01 a.m.)
-
- added Diff r3
Other reviews