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