catch a reported NPE ?
This commit is contained in:
@ -171,7 +171,24 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer {
|
||||
sender.start();
|
||||
|
||||
browserout = _browser.getOutputStream();
|
||||
serverin = _webserver.getInputStream();
|
||||
// NPE seen here in 0.7-7, caused by addition of socket.close() in the
|
||||
// catch (IOException ioe) block above in blockingHandle() ???
|
||||
// CRIT [ad-130280.hc] net.i2p.util.I2PThread : Killing thread Thread-130280.hc
|
||||
// java.lang.NullPointerException
|
||||
// at java.io.FileInputStream.<init>(FileInputStream.java:131)
|
||||
// at java.net.SocketInputStream.<init>(SocketInputStream.java:44)
|
||||
// at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:401)
|
||||
// at java.net.Socket$2.run(Socket.java:779)
|
||||
// at java.security.AccessController.doPrivileged(Native Method)
|
||||
// at java.net.Socket.getInputStream(Socket.java:776)
|
||||
// at net.i2p.i2ptunnel.I2PTunnelHTTPServer$CompressedRequestor.run(I2PTunnelHTTPServer.java:174)
|
||||
// at java.lang.Thread.run(Thread.java:619)
|
||||
// at net.i2p.util.I2PThread.run(I2PThread.java:71)
|
||||
try {
|
||||
serverin = _webserver.getInputStream();
|
||||
} catch (NullPointerException npe) {
|
||||
throw new IOException("getInputStream NPE");
|
||||
}
|
||||
CompressedResponseOutputStream compressedOut = new CompressedResponseOutputStream(browserout);
|
||||
Sender s = new Sender(compressedOut, serverin, "server: server to browser");
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
|
Reference in New Issue
Block a user