Author: nextgens
Date: 2008-04-04 05:31:26 +0000 (Fri, 04 Apr 2008)
New Revision: 18970

Modified:
   trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Fix a NPE which could be thrown if we got a RoutedRejected with htl=1

Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java  2008-04-04 05:27:02 UTC 
(rev 18969)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java  2008-04-04 05:31:26 UTC 
(rev 18970)
@@ -572,7 +572,7 @@
                if(htl == 0) {
                        // Equivalent to DNF.
                        // Relay.
-                       if(rc.source == null) {
+                       if(rc.source != null) {
                                try {
                                        
rc.source.sendAsync(DMT.createFNPRoutedRejected(id, (short)0), null, 0, 
nodeStats.routedMessageCtr);
                                } catch (NotConnectedException e) {


Reply via email to