Author: toad
Date: 2007-07-27 13:49:57 +0000 (Fri, 27 Jul 2007)
New Revision: 14377

Modified:
   trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Fix NPE when stuff is disabled

Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java  2007-07-27 13:26:14 UTC 
(rev 14376)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java  2007-07-27 13:49:57 UTC 
(rev 14377)
@@ -444,9 +444,12 @@
        public void start(Config config) throws NodeInitException {

                persister.start();
-               fcpServer.maybeStart();
-               toadletContainer.start();
-               tmci.start();
+               if(fcpServer != null)
+                       fcpServer.maybeStart();
+               if(toadletContainer != null)
+                       toadletContainer.start();
+               if(tmci != null)
+                       tmci.start();

                Thread completer = new Thread(new Runnable() {
                        public void run() {


Reply via email to