Author: toad
Date: 2007-12-04 19:27:19 +0000 (Tue, 04 Dec 2007)
New Revision: 16284
Modified:
trunk/freenet/src/freenet/node/TextModeClientInterface.java
Log:
Fix NPE. Fix missing \r\n
Modified: trunk/freenet/src/freenet/node/TextModeClientInterface.java
===================================================================
--- trunk/freenet/src/freenet/node/TextModeClientInterface.java 2007-12-04
19:17:36 UTC (rev 16283)
+++ trunk/freenet/src/freenet/node/TextModeClientInterface.java 2007-12-04
19:27:19 UTC (rev 16284)
@@ -186,7 +186,7 @@
sb.append("STATUS - display some status information on the node
including its reference and connections.\r\n");
sb.append("MEMSTAT - display some memory usage related
informations.\r\n");
sb.append("SHUTDOWN - exit the program\r\n");
- sb.append("ANNOUNCE[:<location>] - announce to the specified
location");
+ sb.append("ANNOUNCE[:<location>] - announce to the specified
location\r\n");
if(n.isUsingWrapper())
sb.append("RESTART - restart the program\r\n");
if(core != null && core.directTMCI != this) {
@@ -939,7 +939,7 @@
public void nodeFailed(PeerNode pn, String
reason) {
try {
- out.write(("Node failed:
"+pn.shortToString()+" "+reason).getBytes());
+ out.write(("Node failed: "+pn+"
"+reason).getBytes());
out.flush();
} catch (IOException e) {
// Ignore