forked from I2P_Developers/i2p.i2p
NPE fixes
This commit is contained in:
@@ -362,7 +362,7 @@ public class I2PTunnelConnectClient extends I2PTunnelHTTPClientBase implements R
|
||||
} finally {
|
||||
// only because we are running it inline
|
||||
closeSocket(s);
|
||||
try { i2ps.close(); } catch (IOException ioe) {}
|
||||
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1334,7 +1334,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
|
||||
} finally {
|
||||
// only because we are running it inline
|
||||
closeSocket(s);
|
||||
try { i2ps.close(); } catch (IOException ioe) {}
|
||||
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user