[FIX] NPE в ServerWrapper

This commit is contained in:
Gravit 2020-01-20 12:21:59 +07:00
parent d4c4197e8e
commit 6ec2c035cf
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -27,6 +27,7 @@
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.AuthProvider;
import java.security.interfaces.ECPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.util.Arrays;
@ -104,6 +105,7 @@ public static void initGson(ServerWrapperModulesManager modulesManager) {
public void run(String... args) throws Throwable {
initGson(modulesManager);
AuthRequest.registerProviders();
if (args.length > 0 && args[0].equals("setup") && !disableSetup) {
LogHelper.debug("Read ServerWrapperConfig.json");
loadConfig();