http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java File user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java (right):
http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java#newcode46 user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java:46: public <H> HandlerRegistration addHandler(Type<H> type, H handler) { On 2011/08/16 11:12:48, Dan White wrote:
I just realised that failing on a null event is perfectly fine -
there's no way
to dispatch the event to a handler or get its Type if it's null.
Yeah, we're going to fail anyway, and then the count will be wrong. I think it's okay to change it to increment afterwards since nobody should be relying on that behavior. http://gwt-code-reviews.appspot.com/1526803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors