Author: dbkr
Date: 2006-06-22 16:09:46 +0000 (Thu, 22 Jun 2006)
New Revision: 9352
Modified:
trunk/freenet/src/freenet/node/Node.java
Log:
Really fix NPE - the UserAlert needs to be present before the PeerManager is
created.
Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java 2006-06-22 15:43:01 UTC (rev
9351)
+++ trunk/freenet/src/freenet/node/Node.java 2006-06-22 16:09:46 UTC (rev
9352)
@@ -952,6 +952,10 @@
throttledPacketSendAverage =
new TimeDecayingRunningAverage(1, 10*60*1000 /* should
be significantly longer than a typical transfer */, 0, Long.MAX_VALUE);
+ buildOldAgeUserAlert = new BuildOldAgeUserAlert();
+
+ primaryIPUndetectedAlert = new IPUndetectedUserAlert();
+
// Setup node-specific configuration
SubConfig nodeConfig = new SubConfig("node", config);
@@ -1242,10 +1246,6 @@
usm.setDispatcher(dispatcher=new NodeDispatcher(this));
usm.setLowLevelFilter(packetMangler = new
FNPPacketMangler(this));
- buildOldAgeUserAlert = new BuildOldAgeUserAlert();
-
- primaryIPUndetectedAlert = new IPUndetectedUserAlert();
-
// Temp files
nodeConfig.register("tempDir", new File(nodeDir,
"temp-"+portNumber).toString(), 6, true, "Temp files directory", "Name of
directory to put temporary files in",