skip service correction if config is absent

This commit is contained in:
idk
2022-09-20 01:07:56 -04:00
parent 186493b154
commit 0d209bb2a8

View File

@ -159,7 +159,16 @@ public class WinLauncher extends CopyConfigDir {
// regulalr bundle, then they have a config file which contains the
// wrong update URL. Check for it, and change it back if necessary.
// closes #23
i2pRouter = new Router(routerConfig(), System.getProperties());
String routerconf = routerConfig();
if (routerconf != null) {
File routerconffile = new File(routerconf);
if (!routerconffile.exists()) {
return;
}
} else {
return;
}
i2pRouter = new Router(routerconf, System.getProperties());
if (isInstalled("i2p") || checkProgramFilesInstall()) {
String newsURL = i2pRouter.getConfigSetting("router.newsURL");
if (newsURL != null) {