[freenet-cvs] r13491 - trunk/freenet/src/freenet/node

toad at freenetproject.org toad at freenetproject.org
Fri Jun 8 17:39:49 UTC 2007


Author: toad
Date: 2007-06-08 17:39:49 +0000 (Fri, 08 Jun 2007)
New Revision: 13491

Modified:
   trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Fix NPE in new probe request code

Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java	2007-06-08 17:26:51 UTC (rev 13490)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java	2007-06-08 17:39:49 UTC (rev 13491)
@@ -484,7 +484,7 @@
 		double[] locsNotVisited = null;
 		Vector notVisitedList = new Vector();
 		if(notVisited != null) {
-			locsNotVisited = Fields.bytesToDoubles(((ShortBuffer)m.getObject(DMT.BEST_LOCATIONS_NOT_VISITED)).getData());
+			locsNotVisited = Fields.bytesToDoubles(((ShortBuffer)notVisited.getObject(DMT.BEST_LOCATIONS_NOT_VISITED)).getData());
 			for(int i=0;i<locsNotVisited.length;i++)
 				notVisitedList.add(new Double(locsNotVisited[i]));
 		}
@@ -834,7 +834,7 @@
 		double[] locsNotVisited = null;
 		Vector notVisitedList = new Vector();
 		if(notVisited != null) {
-			locsNotVisited = Fields.bytesToDoubles(((ShortBuffer)m.getObject(DMT.BEST_LOCATIONS_NOT_VISITED)).getData());
+			locsNotVisited = Fields.bytesToDoubles(((ShortBuffer)notVisited.getObject(DMT.BEST_LOCATIONS_NOT_VISITED)).getData());
 			for(int i=0;i<locsNotVisited.length;i++)
 				notVisitedList.add(new Double(locsNotVisited[i]));
 		}




More information about the cvs mailing list