james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1103220 - /james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java
Date Sat, 14 May 2011 20:50:36 GMT
Author: norman
Date: Sat May 14 20:50:35 2011
New Revision: 1103220

URL: http://svn.apache.org/viewvc?rev=1103220&view=rev
Log:
Better handling of namespace. Related to MAILBOX-11

Modified:
    james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java

Modified: james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java?rev=1103220&r1=1103219&r2=1103220&view=diff
==============================================================================
--- james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java (original)
+++ james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxPath.java Sat May
14 20:50:35 2011
@@ -34,7 +34,7 @@ public class MailboxPath {
 
     
     public MailboxPath(String namespace, String user, String name) {
-        if (namespace.equals("")) {
+        if (namespace == null || namespace.equals("")) {
             this.namespace = MailboxConstants.USER_NAMESPACE;
         } else {
             this.namespace = namespace;



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message