Author: norman
Date: Wed Feb 16 09:26:09 2011
New Revision: 1071180
URL: http://svn.apache.org/viewvc?rev=1071180&view=rev
Log:
Fix NPE in AbstractStoreQuota. Thanks to Barry for reporting. See JAMES-1193
Modified:
james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
Modified:
james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java?rev=1071180&r1=1071179&r2=1071180&view=diff
==============================================================================
---
james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
(original)
+++
james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
Wed Feb 16 09:26:09 2011
@@ -74,7 +74,7 @@ abstract public class AbstractStorageQuo
*/
private UsersRepository localusers;
- private final MailetContextLog log = new
MailetContextLog(getMailetContext());
+ private MailetContextLog log;
/**
* Checks the recipient.
@@ -90,6 +90,14 @@ abstract public class AbstractStorageQuo
return super.isRecipientChecked(recipient) &&
(mailetContext.isLocalEmail(recipient));
}
+ @Override
+ public void init() throws MessagingException {
+ super.init();
+
+ // init the log
+ log = new MailetContextLog(getMailetContext());
+ }
+
/**
* Gets the storage used in the recipient's inbox.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]