Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv22946

Modified Files:
        NGRoutingTable.java 
Log Message:
Fix NPE in NGRoutingTable.reference in same way as similar NPE
was fixed in NGRoutingTable.updateReference.


Index: NGRoutingTable.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/NGRoutingTable.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- NGRoutingTable.java 23 Oct 2003 18:47:55 -0000      1.15
+++ NGRoutingTable.java 24 Oct 2003 04:35:41 -0000      1.16
@@ -187,6 +187,10 @@
                } else if(nr.supersedes(mem.getNodeReference())) {
                        ((DataObjectRoutingMemory)mem).noderef = nr;
                        NodeEstimator e = (NodeEstimator)(estimators.get(i));
+                       if (e == null)
+                               Core.logger.log(this, "Got "+mem+" but not estimator!",
+                                                               new 
Exception("debug"), Logger.NORMAL);
+                       else
                        e.ref = nr;
                }
                

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to