Author: toad
Date: 2006-01-27 00:53:48 +0000 (Fri, 27 Jan 2006)
New Revision: 7945
Modified:
trunk/freenet/src/freenet/node/Version.java
trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
396: avoid unusual NPE.
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-01-27 00:41:36 UTC (rev
7944)
+++ trunk/freenet/src/freenet/node/Version.java 2006-01-27 00:53:48 UTC (rev
7945)
@@ -20,7 +20,7 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- public static final int buildNumber = 395;
+ public static final int buildNumber = 396;
/** Oldest build of Fred we will talk to */
public static final int lastGoodBuild = 392;
Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2006-01-27 00:41:36 UTC (rev 7944)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2006-01-27 00:53:48 UTC (rev 7945)
@@ -29,14 +29,14 @@
public FCPConnectionHandler(Socket s, Node node) {
this.sock = s;
this.node = node;
- this.inputHandler = new FCPConnectionInputHandler(this);
- this.outputHandler = new FCPConnectionOutputHandler(this);
isClosed = false;
this.bf = node.tempBucketFactory;
requestsByIdentifier = new HashMap();
HighLevelSimpleClient client = node.makeClient((short)0);
defaultFetchContext = client.getFetcherContext();
defaultInsertContext = client.getInserterContext();
+ this.inputHandler = new FCPConnectionInputHandler(this);
+ this.outputHandler = new FCPConnectionOutputHandler(this);
inputHandler.start();
}