Skip to content

Conversation

fixermark
Copy link

Hold reference to member in members array while acting on it. This avoids a buggy corner-case where members[i].update() could change the number of members in this Group, resulting in the members[i].exists check referencing a different member (and possibly crashing on members[i] being undefined).

Hold reference to member in members array while acting on it. This avoids a buggy corner-case where member.update() could change the number of members in this Group, resulting in the "members[i].exists" check referencing a different member (and possibly crashing on members[i] being undefined).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant