Author: manik.surtani(a)jboss.com
Date: 2008-01-31 06:32:39 -0500 (Thu, 31 Jan 2008)
New Revision: 5280
Modified:
core/trunk/src/main/java/org/jboss/cache/notifications/Notifier.java
Log:
Added a null check
Modified: core/trunk/src/main/java/org/jboss/cache/notifications/Notifier.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/notifications/Notifier.java 2008-01-31
02:47:28 UTC (rev 5279)
+++ core/trunk/src/main/java/org/jboss/cache/notifications/Notifier.java 2008-01-31
11:32:39 UTC (rev 5280)
@@ -159,6 +159,8 @@
private void removeListenerInvocation(Class annotation, Object listener)
{
+ if (listener == null) return;
+
List<ListenerInvocation> l = listenerInvocations.get(annotation);
Set<Object> markedForRemoval = new HashSet<Object>();
if (l != null)
Show replies by date