Disabling internal web server results in NullPointerException
jbhannah opened this issue ยท 0 comments
Traces back to the Logging.info()
call trying to reference the internal web server instance, which doesn't exist when settings.internal-webserver.enabled
is set to false
.
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'squaremap'!
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51) ~[fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49) ~[fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35) ~[fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:62) ~[fabric-loader-0.12.12.jar:?]
at net.minecraft.server.Main.main(Main.java:106) [server-intermediary.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:608) [fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77) [fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.12.12.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:66) [fabric-loader-0.12.12.jar:?]
Caused by: java.lang.NullPointerException: MinecraftServer was requested when not active
at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
at xyz.jpenilla.squaremap.fabric.SquaremapFabricInitializer.server(SquaremapFabricInitializer.java:120) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.fabric.SquaremapFabricInitializer.componentFlattener(SquaremapFabricInitializer.java:156) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.common.Logging.plainSerializer(Logging.java:55) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.common.Logging.info(Logging.java:47) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.common.SquaremapCommon.start(SquaremapCommon.java:54) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.common.SquaremapCommon.<init>(SquaremapCommon.java:43) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at xyz.jpenilla.squaremap.fabric.SquaremapFabricInitializer.onInitialize(SquaremapFabricInitializer.java:60) ~[squaremap-fabric-mc1.18.1-1.1.0-SNAPSHOT+8f743b2.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.12.12.jar:?]
... 15 more