Фикс NPE при отсутствии title

This commit is contained in:
Gravit 2019-01-03 22:10:23 +07:00
parent 7ed237c567
commit 1b12dd895a
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -134,7 +134,7 @@ public static void main(String[] args) throws Throwable {
System.arraycopy(args, 1, real_args, 0, args.length - 1);
modulesManager.postInitModules();
LogHelper.info("ServerWrapper: Project %s, LaunchServer address: %s port %d. Title: %s", config.projectname, config.address, config.port, config.title);
LogHelper.info("Minecraft Version (for profile): %s", wrapper.profile.getVersion().name);
LogHelper.info("Minecraft Version (for profile): %s", wrapper.profile == null ? "unknown" : wrapper.profile.getVersion().name);
LogHelper.info("Start Minecraft Server");
LogHelper.debug("Invoke main method %s", mainClass.getName());
mainMethod.invoke(real_args);