forked from I2P_Developers/i2p.i2p
I2PTunnel: fix NPE in I2PTunnelConnectClient
This commit is contained in:
@ -169,6 +169,9 @@ public class I2PTunnelConnectClient extends I2PTunnelHTTPClientBase implements R
|
||||
// Use this rather than BufferedReader because we can't have readahead,
|
||||
// since we are passing the stream on to I2PTunnelRunner
|
||||
line = DataHelper.readLine(in);
|
||||
if(line == null) {
|
||||
line = ''; // prevent NPE, Is this what we need to do?
|
||||
}
|
||||
line = line.trim();
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug(getPrefix(requestId) + "Line=[" + line + "]");
|
||||
|
@ -1,3 +1,6 @@
|
||||
2011-02-11 sponge
|
||||
* I2PTunnel: fix NPE in I2PTunnelConnectClient
|
||||
|
||||
2011-02-10 sponge
|
||||
* I2CP: fix NPE in QueuedClientConnectionRunner
|
||||
|
||||
|
@ -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 = 7;
|
||||
public final static long BUILD = 8;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user