Author: felixk
Date: Fri Sep 30 10:41:40 2011
New Revision: 1177583
URL: http://svn.apache.org/viewvc?rev=1177583&view=rev
Log:
Avoid NPE
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java?rev=1177583&r1=1177582&r2=1177583&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
Fri Sep 30 10:41:40 2011
@@ -83,7 +83,7 @@ public abstract class ListeningQuotaMana
count = c;
}
}
- return QuotaImpl.quota(max, count.get());
+ return QuotaImpl.quota(max, count != null ? count.get() : 0);
} else {
return QuotaImpl.unlimited();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]