Closed niltsiar closed 5 years ago
Addresses #168
Under some circumstances it seems to be possible to modify the Registerable list of a Register while it's been iterated and this produces an Exception
Registerable
Register
The solution returns a copy of the registerables list to be iterated so no exception is produced if the underlying list is modified.
Yes. A test has been added in order to find the bug and see that the solution fixes it.
Nobody
Can one of the admins review this PR?
ok to test
Problem
Addresses #168
Under some circumstances it seems to be possible to modify the
Registerable
list of aRegister
while it's been iterated and this produces an ExceptionSolution
The solution returns a copy of the registerables list to be iterated so no exception is produced if the underlying list is modified.
Test(s) added
Yes. A test has been added in order to find the bug and see that the solution fixes it.
Paired with
Nobody