[freenet-cvs] r14755 - trunk/freenet/src/freenet/node

nextgens at freenetproject.org nextgens at freenetproject.org
Fri Aug 17 15:59:26 UTC 2007


Author: nextgens
Date: 2007-08-17 15:59:26 +0000 (Fri, 17 Aug 2007)
New Revision: 14755

Modified:
   trunk/freenet/src/freenet/node/TextModeClientInterface.java
Log:
Prevent a NPE in TMCI (fix "console.directEnabled")

Modified: trunk/freenet/src/freenet/node/TextModeClientInterface.java
===================================================================
--- trunk/freenet/src/freenet/node/TextModeClientInterface.java	2007-08-17 15:49:35 UTC (rev 14754)
+++ trunk/freenet/src/freenet/node/TextModeClientInterface.java	2007-08-17 15:59:26 UTC (rev 14755)
@@ -187,7 +187,7 @@
         sb.append("SHUTDOWN - exit the program\r\n");
         if(n.isUsingWrapper())
         	sb.append("RESTART - restart the program\r\n");
-        if(core.directTMCI != this) {
+        if(core != null && core.directTMCI != this) {
           sb.append("QUIT - close the socket\r\n");
         }
         if(n.testnetEnabled) {




More information about the cvs mailing list