diff --git a/apps/BOB/nbproject/private/private.xml b/apps/BOB/nbproject/private/private.xml index 4f83e8d30..c1f155a78 100644 --- a/apps/BOB/nbproject/private/private.xml +++ b/apps/BOB/nbproject/private/private.xml @@ -1,8 +1,4 @@ - - file:/usblv/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/I2PtoTCP.java - file:/usblv/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/MUXlisten.java - diff --git a/apps/BOB/src/net/i2p/BOB/DoCMDS.java b/apps/BOB/src/net/i2p/BOB/DoCMDS.java index dcb0a195d..2a149522b 100644 --- a/apps/BOB/src/net/i2p/BOB/DoCMDS.java +++ b/apps/BOB/src/net/i2p/BOB/DoCMDS.java @@ -691,6 +691,7 @@ public class DoCMDS implements Runnable { try { prikey = new ByteArrayOutputStream(); prikey.write(net.i2p.data.Base64.decode(Arg)); + d = new Destination(); d.fromBase64(Arg); } catch (Exception ex) { Arg = ""; diff --git a/apps/BOB/src/net/i2p/BOB/TCPtoI2P.java b/apps/BOB/src/net/i2p/BOB/TCPtoI2P.java index a4a851c54..a537d942f 100644 --- a/apps/BOB/src/net/i2p/BOB/TCPtoI2P.java +++ b/apps/BOB/src/net/i2p/BOB/TCPtoI2P.java @@ -146,8 +146,14 @@ public class TCPtoI2P implements Runnable { input = line.toLowerCase(); Destination dest = null; if (input.endsWith(".i2p")) { - dest = I2PTunnel.destFromName(input); - line = dest.toBase64(); + try { + dest = I2PTunnel.destFromName(input); + line = dest.toBase64(); + } catch (NullPointerException npe) { + // Could not find the destination!? + Emsg("Can't find destination: " + input, out); + return; + } } dest = new Destination(); dest.fromBase64(line); diff --git a/history.txt b/history.txt index a8d1aaf8a..311a8c7c1 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,8 @@ +2010-01-30 sponge + * Fix NPE in TCPtoI2P when a lookup fails, report the error to the stream. + * Fix setkeys bug in DoCMDS, forgot to create the object before calling + it's methods, which threw an NPE. + 2010-01-29 zzz * build.xml: Add a debian-source target * Data structures: diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index 687f8db2f..8c54ff98c 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -18,7 +18,7 @@ public class RouterVersion { /** deprecated */ public final static String ID = "Monotone"; public final static String VERSION = CoreVersion.VERSION; - public final static long BUILD = 4; + public final static long BUILD = 5; /** for example "-test" */ public final static String EXTRA = "";