forked from I2P_Developers/i2p.i2p
Router: Fix NPE on bad share bandwidth config (ticket #1524)
This commit is contained in:
@@ -357,6 +357,8 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
*/
|
||||
private void startupStuff() {
|
||||
// ********* Start no threads before here ********* //
|
||||
_log = _context.logManager().getLog(Router.class);
|
||||
|
||||
//
|
||||
// NOW we can start the ping file thread.
|
||||
if (!SystemVersion.isAndroid())
|
||||
@@ -391,8 +393,8 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
|
||||
_routerInfo = null;
|
||||
_higherVersionSeen = false;
|
||||
_log = _context.logManager().getLog(Router.class);
|
||||
_log.info("New router created with config file " + _configFilename);
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
_log.info("New router created with config file " + _configFilename);
|
||||
_oomListener = new OOMListener(_context);
|
||||
|
||||
_shutdownHook = new ShutdownHook(_context);
|
||||
|
Reference in New Issue
Block a user