aino-komal / mvp4g

Automatically exported from code.google.com/p/mvp4g
0 stars 0 forks source link

Error when removing an handler that is handling an event #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you try to remove an handler using eventBus.removeHandler(this); an 
IndexOutOfBound exception can occur. 

This error occurs because Mvp4g go through the handler list starting at the 
first element. It should start by the last one to prevent this kind of error.

Workaround: use a Scheduler (GWT 2.1) or a Deferred Command (GWT 2.0) to 
postpone the handler removal after all the handlers have been called.

Original issue reported on code.google.com by plcoir...@gmail.com on 7 Dec 2010 at 2:17

GoogleCodeExporter commented 9 years ago
Fixed in the last snapshot

Original comment by plcoir...@gmail.com on 9 Dec 2010 at 11:56