* Connect Client: Minor NPE fix cleanup

This commit is contained in:
zzz
2011-02-13 20:26:56 +00:00
parent 2e84134938
commit 41d8177340

View File

@ -170,7 +170,7 @@ public class I2PTunnelConnectClient extends I2PTunnelHTTPClientBase implements R
// since we are passing the stream on to I2PTunnelRunner // since we are passing the stream on to I2PTunnelRunner
line = DataHelper.readLine(in); line = DataHelper.readLine(in);
if(line == null) { if(line == null) {
line = ""; // prevent NPE, Is this what we need to do? break;
} }
line = line.trim(); line = line.trim();
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))