Author: toad
Date: 2008-06-18 18:00:43 +0000 (Wed, 18 Jun 2008)
New Revision: 20443

Modified:
   
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Fix NPE

Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-06-18 18:00:04 UTC (rev 20442)
+++ 
branches/db4o/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java  
    2008-06-18 18:00:43 UTC (rev 20443)
@@ -98,7 +98,8 @@
        }

        private void onStarted(ObjectContainer container, long cooldownTime, 
ClientRequestScheduler sched, ClientContext context) {
-               ((Db4oMap)pendingKeys).activationDepth(Integer.MAX_VALUE);
+               if(!isInsertScheduler)
+                       
((Db4oMap)pendingKeys).activationDepth(Integer.MAX_VALUE);
                
((Db4oMap)allRequestsByClientRequest).activationDepth(Integer.MAX_VALUE);
                ((Db4oList)recentSuccesses).activationDepth(Integer.MAX_VALUE);
                this.container = container;


Reply via email to