Skip to content

NullPointerException in FabricCommandSource.getWorld() prevents player login [5.14/1.21.11/fabric] #761

@Quessso

Description

@Quessso

What i did / Steps to reproduce

Installed BlueMap 5.14

Version : Fabric server (Minecraft 1.21.11)

Started the server, BlueMap loaded successfully

Attempted to have a player join the server

Expected result

Players should be able to join the server normally while BlueMap runs in the background

Actual result

Players cannot join the server, console shows the following error:

[15:27:38] [Server thread/ERROR]: Couldn't place player in world
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at java.base/java.util.Optional.of(Optional.java:113)
at knot//de.bluecolored.bluemap.fabric.FabricCommandSource.getWorld(FabricCommandSource.java:88)
at knot//de.bluecolored.bluemap.common.commands.Commands.lambda$create$7(Commands.java:82)
at knot//de.bluecolored.bluecommands.BlueCommands.checkContext(BlueCommands.java:259)
at knot//de.bluecolored.bluecommands.MethodCommandExecutable.isValid(MethodCommandExecutable.java:99)
at knot//de.bluecolored.bluecommands.Command.checkValid(Command.java:149)
at knot//de.bluecolored.bluecommands.Command.isValid(Command.java:141)
at knot//de.bluecolored.bluecommands.Command.checkValid(Command.java:153)
at knot//de.bluecolored.bluecommands.Command.isValid(Command.java:141)
at knot//de.bluecolored.bluecommands.brigadier.BrigadierBridge.lambda$createCommandNodes$1(BrigadierBridge.java:86)
at knot//net.minecraft.class_2170$1.method_71674(class_2170.java:201)
at knot//net.minecraft.class_2641.method_11401(class_2641.java:215)
at knot//net.minecraft.class_2641.method_30945(class_2641.java:104)
at knot//net.minecraft.class_2641.(class_2641.java:50)
at knot//net.minecraft.class_2170.method_9241(class_2170.java:444)
at knot//net.minecraft.class_3324.method_14596(class_3324.java:592)
at knot//net.minecraft.class_3324.method_14576(class_3324.java:489)
at knot//net.minecraft.class_3324.method_14570(class_3324.java:192)
at knot//net.minecraft.class_11549$class_11551.method_72305(class_11549.java:198)
at knot//net.minecraft.class_11549.method_72296(class_11549.java:91)
at knot//net.minecraft.class_8610.method_52408(class_8610.java:178)
at knot//net.minecraft.class_8736.method_53043(class_8736.java:22)
at knot//net.minecraft.class_8736.method_65081(class_8736.java:8)
at knot//net.minecraft.class_11980$class_11981.method_74450(class_11980.java:55)
at knot//net.minecraft.class_11980.method_74449(class_11980.java:38)
at knot//net.minecraft.server.MinecraftServer.method_76677(MinecraftServer.java:1047)
at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:771)
at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:301)
at java.base/java.lang.Thread.run(Thread.java:1583)
[15:27:38] [Server thread/INFO]: Queso_Su lost connection: Invalid player data
[15:27:38] [Server thread/INFO]: Queso_Su left the game

Additional Information:

The error occurs when a player tries to log in, seemingly when BlueMap attempts to get the player's world and encounters a null pointer exception

When BlueMap is disabled, players can join normally

The server was in a paused state before player login (paused after 60 seconds of being empty), but this may not be the direct cause

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions