NPE fixes

This commit is contained in:
str4d
2018-02-17 18:41:30 +00:00
parent cd3515923e
commit fb6eea2484
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {}
}
}

View File

@@ -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) {}
}
}