You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/02/16 10:26:10 UTC
svn commit: r1071180 -
/james/server/trunk/mailets/src/main/java/org/apache/james/transport/matchers/AbstractStorageQuota.java
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org