I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cd6d9cdd authored by zzz's avatar zzz
Browse files

Router: Fix NPE on bad share bandwidth config (ticket #1524)

parent e45413d4
No related branches found
No related tags found
No related merge requests found
...@@ -357,6 +357,8 @@ public class Router implements RouterClock.ClockShiftListener { ...@@ -357,6 +357,8 @@ public class Router implements RouterClock.ClockShiftListener {
*/ */
private void startupStuff() { private void startupStuff() {
// ********* Start no threads before here ********* // // ********* Start no threads before here ********* //
_log = _context.logManager().getLog(Router.class);
// //
// NOW we can start the ping file thread. // NOW we can start the ping file thread.
if (!SystemVersion.isAndroid()) if (!SystemVersion.isAndroid())
...@@ -391,8 +393,8 @@ public class Router implements RouterClock.ClockShiftListener { ...@@ -391,8 +393,8 @@ public class Router implements RouterClock.ClockShiftListener {
_routerInfo = null; _routerInfo = null;
_higherVersionSeen = false; _higherVersionSeen = false;
_log = _context.logManager().getLog(Router.class); if (_log.shouldLog(Log.INFO))
_log.info("New router created with config file " + _configFilename); _log.info("New router created with config file " + _configFilename);
_oomListener = new OOMListener(_context); _oomListener = new OOMListener(_context);
_shutdownHook = new ShutdownHook(_context); _shutdownHook = new ShutdownHook(_context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment