Thursday, June 2, 2011

Re: redundant remove call with HandlerManager

Doh! Oh yeah. Thanks.

On Jun 2, 11:51 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> An AssertionError is a Throwable but not an
> Exception:http://download.oracle.com/javase/6/docs/api/java/lang/AssertionError...
>
> Anyway, you shouldn't catch the exception, you should rather make sure it
> doesn't happen. For instance, whenever you removeHandler(), you could null
> the variable, so the next time you won't try to call removeHandler() a
> second time on the same HandlerRegistration.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment