[FIX] Исправление ошибок NPE при запуске

This commit is contained in:
Gravit 2019-07-01 17:08:20 +07:00
parent 6db16ac0f3
commit 37b679bbd6
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
3 changed files with 4 additions and 3 deletions

View file

@ -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();

View file

@ -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<>();
} }

View file

@ -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;