Author: toad
Date: 2009-04-23 15:15:42 +0000 (Thu, 23 Apr 2009)
New Revision: 27257

Modified:
   trunk/freenet/src/freenet/clients/http/FProxyFetchTracker.java
Log:
Fix NPE


Modified: trunk/freenet/src/freenet/clients/http/FProxyFetchTracker.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyFetchTracker.java      
2009-04-23 15:13:53 UTC (rev 27256)
+++ trunk/freenet/src/freenet/clients/http/FProxyFetchTracker.java      
2009-04-23 15:15:42 UTC (rev 27257)
@@ -108,10 +108,12 @@
                                                toRemove.add(f);
                                        }
                        }
+                       if(toRemove != null)
                        for(FProxyFetchInProgress r : toRemove) {
                                fetchers.removeElement(r.uri, r);
                        }
                }
+               if(toRemove != null)
                for(FProxyFetchInProgress r : toRemove)
                        r.finishCancel();
                if(needRequeue)

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

Reply via email to