Calling unRegisterMessageHandler throws ConcurrentModificationException

2 views
Skip to first unread message

catchmesam

unread,
Nov 2, 2009, 10:23:19 AM11/2/09
to Merapi
Hi,

Unregistering a handler for a message type using the following
statement throws an exception:

Bridge.getInstance().unRegisterMessageHandler(MSG_TYPE, handler);

java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at merapi.Bridge.unRegisterMessageHandler(Bridge.java:261)
at com.merapi.HelloMain.main(HelloMain.java:44)



Reply all
Reply to author
Forward
0 new messages