Author: TheSeeker
Date: 2008-12-28 15:10:39 +0000 (Sun, 28 Dec 2008)
New Revision: 24807

Modified:
   branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
Log:
Fix an NPE preventing Frost and FMS from functioning.
This might have been fixed at line 428 instead, but I thought it better to fix 
it within trySendAllDataMessage() since I don't know if/when it will be used 
again elsewhere, and passing null for the FCPConnectionOutputHandler seems to 
be desirable for some reason.

Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java   2008-12-28 
06:19:20 UTC (rev 24806)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java   2008-12-28 
15:10:39 UTC (rev 24807)
@@ -481,6 +481,9 @@
                        }
                        return;
                }
+        if(handler == null)
+            handler = origHandler.outputHandler;
+
                handler.queue(msg);
        }
 

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

Reply via email to