First commit about list() should be ok as it is, atleast as far as I know.
The second one, I don’t really know the cause, or how this really affects, but it did get me a bit further. I’m having some strange threading related problems, which mostly are just due activerecord being not really multithreading compatible, but some strange NPEs and other errors too. So I decided to include this fix too.
The text was updated successfully, but these errors were encountered:
This is just here since I seem to get this error quite a bit. I guess correct way would be to ensure somehow that there always is the default group, but quick search didn’t give me any idea how it can be missing in first place.
See #1142. This supercedes a fix there. I opted to use CopyOnWriteArrayList here for two reasons: * It does not require synchronization, neither for access nor iter * EventHooks should are only added or removed rarely