Author: j16sdiz
Date: 2008-12-10 03:57:45 +0000 (Wed, 10 Dec 2008)
New Revision: 24167

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
fix bug 2774: ArrayIndexOutOfBoundsException when no page in prefix

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2008-12-10 02:00:40 UTC (rev 
24166)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2008-12-10 03:57:45 UTC (rev 
24167)
@@ -549,7 +549,7 @@
                        Logger.minor(this, "Generating subindex for 
"+list.size()+" entries with prefix length "+p);
 
                try {
-                       if(list.size() < MAX_ENTRIES)
+                       if(list.size() > 0 && list.size() < MAX_ENTRIES)
                        {       
                                generateXML(list,p);
                                return;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to