Author: nextgens
Date: 2006-03-29 09:24:01 +0000 (Wed, 29 Mar 2006)
New Revision: 8350
Modified:
trunk/freenet/src/freenet/node/Version.java
trunk/freenet/src/freenet/pluginmanager/PluginHandler.java
trunk/freenet/src/freenet/pluginmanager/PluginRespirator.java
Log:
584:
Fixed a NPE preventing plugins from working
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-03-28 23:49:10 UTC (rev
8349)
+++ trunk/freenet/src/freenet/node/Version.java 2006-03-29 09:24:01 UTC (rev
8350)
@@ -20,7 +20,7 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- private static final int buildNumber = 583;
+ private static final int buildNumber = 584;
/** Oldest build of Fred we will talk to */
private static final int lastGoodBuild = 555;
Modified: trunk/freenet/src/freenet/pluginmanager/PluginHandler.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginHandler.java 2006-03-28
23:49:10 UTC (rev 8349)
+++ trunk/freenet/src/freenet/pluginmanager/PluginHandler.java 2006-03-29
09:24:01 UTC (rev 8350)
@@ -26,6 +26,7 @@
ps.setPlugin(pm, plug);
if (!pi.isThreadlessPlugin())
ps.start();
+ ps.run();
return pi;
}
@@ -58,7 +59,7 @@
if (plugin instanceof FredPlugin) {
FredPlugin plug = ((FredPlugin)plugin);
//if (plug.handles(FredPlugin.handleFproxy))
-
+
((FredPlugin)plugin).runPlugin(pr);
}
// If not FredPlugin, then the whole thing is aborted,
Modified: trunk/freenet/src/freenet/pluginmanager/PluginRespirator.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginRespirator.java
2006-03-28 23:49:10 UTC (rev 8349)
+++ trunk/freenet/src/freenet/pluginmanager/PluginRespirator.java
2006-03-29 09:24:01 UTC (rev 8350)
@@ -15,9 +15,8 @@
public PluginRespirator(Node node, PluginManager pm) {
this.node = node;
- hlsc =
node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS);
- //this.hlsc = hlsc;
- toadletList = new HashMap();
+ this.hlsc =
node.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS);
+ this.toadletList = new HashMap();
}
//public HighLevelSimpleClient getHLSimpleClient() throws
PluginSecurityException {