You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/08/17 07:36:06 UTC

svn commit: r233127 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

Author: pquerna
Date: Tue Aug 16 22:36:03 2005
New Revision: 233127

URL: http://svn.apache.org/viewcvs?rev=233127&view=rev
Log:
If calculate_threads returns NULL, stop there. This should hopefully stop the crash that is plauging Ajax.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c?rev=233127&r1=233126&r2=233127&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Tue Aug 16 22:36:03 2005
@@ -289,12 +289,18 @@
        break;
     case MBOX_PREV_THREAD:
         c = calculate_threads(r->pool, head);
+        if (!c) {
+            break;
+        }
         c = find_prev_thread(r, msgID, c);
         if (c && c->message)
             newMsgID = c->message->msgID;
         break;
     case MBOX_NEXT_THREAD:
         c = calculate_threads(r->pool, head);
+        if (!c) {
+            break;
+        }
         c = find_next_thread(r, msgID, c);
         if (c && c->message)
             newMsgID = c->message->msgID;