Aidan OK
unread,Jan 20, 2012, 12:50:15 PM1/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Recently, as I've started using the EventBus a lot more, I'm noticing it seems to be not throwing UmbrellaExceptions when for example, there is a NPE in one of the handlers. silently continuing instead. Anyone any idea on whats causing this, and how it can be avoided?
I suspect it might be because I'm firing more Events during the execution of a handler (or some method called from the handler) but even using deferred commands to fire events doesn't seem to help.
Setup is something like this:
Singleton 'backend' - Fires events on server push, or due to user request, uses main EventBus.
Activity - Creates a 'provider' object, giving it a RessetableEventBus. provider listens for events from backend, and fires its own events.
The activity subscribe to events from the provider. If these handlers throw a NPE/other exception, we never see it.