mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Исправление ошибок NPE при запуске
This commit is contained in:
parent
6db16ac0f3
commit
37b679bbd6
3 changed files with 4 additions and 3 deletions
|
@ -575,6 +575,7 @@ public LaunchServer(Path dir, boolean testEnv, String[] args) throws IOException
|
||||||
}
|
}
|
||||||
config.permissionsHandler.init(this);
|
config.permissionsHandler.init(this);
|
||||||
config.hwidHandler.init();
|
config.hwidHandler.init();
|
||||||
|
if(config.dao != null)
|
||||||
config.dao.init(this);
|
config.dao.init(this);
|
||||||
if (config.protectHandler != null) {
|
if (config.protectHandler != null) {
|
||||||
config.protectHandler.checkLaunchServerLicense();
|
config.protectHandler.checkLaunchServerLicense();
|
||||||
|
|
|
@ -27,5 +27,5 @@ public RegContext(String login, String password, String ip, boolean trustContext
|
||||||
this.trustContext = trustContext;
|
this.trustContext = trustContext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public HookSet<RegContext> registraion;
|
public HookSet<RegContext> registraion = new HookSet<>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
public class WebSocketService {
|
public class WebSocketService {
|
||||||
public final ChannelGroup channels;
|
public final ChannelGroup channels;
|
||||||
public static ProviderMap<JsonResponseInterface> providers;
|
public static ProviderMap<JsonResponseInterface> providers = new ProviderMap<>();
|
||||||
|
|
||||||
public WebSocketService(ChannelGroup channels, LaunchServer server) {
|
public WebSocketService(ChannelGroup channels, LaunchServer server) {
|
||||||
this.channels = channels;
|
this.channels = channels;
|
||||||
|
|
Loading…
Reference in a new issue