Author: felixk
Date: Fri Sep 30 10:14:49 2011
New Revision: 1177578

URL: http://svn.apache.org/viewvc?rev=1177578&view=rev
Log:
Avoid NPE

Modified:
    
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java

Modified: 
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java?rev=1177578&r1=1177577&r2=1177578&view=diff
==============================================================================
--- 
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java
 (original)
+++ 
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirFolder.java
 Fri Sep 30 10:14:49 2011
@@ -656,6 +656,8 @@ public class MaildirFolder {
      * @throws IOException
      */
     private void readUidListHeader(String line) throws IOException {
+        if (line == null)
+            throw new IOException("Header entry in uid-file is null");
         int gap1 = line.indexOf(" ");
         if (gap1 == -1) {
             // there must be some issues in the file if no gap can be found



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to