Author: norman
Date: Fri Sep 30 20:50:41 2011
New Revision: 1177826
URL: http://svn.apache.org/viewvc?rev=1177826&view=rev
Log:
Fix possible NPE in some cases.
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/AbstractDelegatingMailboxListener.java
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/AbstractDelegatingMailboxListener.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/AbstractDelegatingMailboxListener.java?rev=1177826&r1=1177825&r2=1177826&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/AbstractDelegatingMailboxListener.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/AbstractDelegatingMailboxListener.java
Fri Sep 30 20:50:41 2011
@@ -163,8 +163,10 @@ public abstract class AbstractDelegating
public void removeGlobalListener(MailboxListener listener, MailboxSession
session) throws MailboxException {
List<MailboxListener> gListeners = getGlobalListeners();
- synchronized (gListeners) {
- gListeners.remove(listener);
+ if (gListeners != null) {
+ synchronized (gListeners) {
+ gListeners.remove(listener);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]