You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-10-22T16:13:23Z INFO:emu.grasscutter.command.CommandMap Command used by server console: stop
2024-10-22T16:13:23Z INFO:emu.grasscutter.command.CommandHandler 正在关闭服务器...
2024-10-22T16:13:23Z ERROR:emu.grasscutter.Grasscutter 命令发生错误:
java.lang.NullPointerException: Cannot invoke "emu.grasscutter.server.game.GameServer.getPlayers()" because the return value of "emu.grasscutter.Grasscutter.getGameServer()" is null
at emu.grasscutter.command.commands.StopCommand.execute(StopCommand.java:20)
at emu.grasscutter.command.CommandMap.lambda$invoke$0(CommandMap.java:331)
at emu.grasscutter.command.CommandMap.invoke(CommandMap.java:335)
at emu.grasscutter.Grasscutter.startConsole(Grasscutter.java:351)
at emu.grasscutter.Grasscutter.main(Grasscutter.java:187)
Possible cause:
The server needs to kick out all players when it is shut down, so it needs to retrieve a list of players. However, on a server with DISPATCH_ONLY, the game service has never been started, so there is no player list. Therefore, a null pointer error occurs when trying to retrieve it.
Screenshot:
The text was updated successfully, but these errors were encountered:
Jimmy32767255
changed the title
[Bug] 在试图关闭DISPATCH_ONLY的服务器时遇到空指针错误
[Bug] A null pointer error was encountered while trying to shut down the DISPATCH_ONLY server
Oct 22, 2024
Logs:
2024-10-22T16:13:23Z INFO:emu.grasscutter.command.CommandMap Command used by server console: stop
2024-10-22T16:13:23Z INFO:emu.grasscutter.command.CommandHandler 正在关闭服务器...
2024-10-22T16:13:23Z ERROR:emu.grasscutter.Grasscutter 命令发生错误:
java.lang.NullPointerException: Cannot invoke "emu.grasscutter.server.game.GameServer.getPlayers()" because the return value of "emu.grasscutter.Grasscutter.getGameServer()" is null
at emu.grasscutter.command.commands.StopCommand.execute(StopCommand.java:20)
at emu.grasscutter.command.CommandMap.lambda$invoke$0(CommandMap.java:331)
at emu.grasscutter.command.CommandMap.invoke(CommandMap.java:335)
at emu.grasscutter.Grasscutter.startConsole(Grasscutter.java:351)
at emu.grasscutter.Grasscutter.main(Grasscutter.java:187)
Possible cause:
The server needs to kick out all players when it is shut down, so it needs to retrieve a list of players. However, on a server with DISPATCH_ONLY, the game service has never been started, so there is no player list. Therefore, a null pointer error occurs when trying to retrieve it.
Screenshot:
The text was updated successfully, but these errors were encountered: