Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE and Crash when trying to sleep in bed during day #46

Open
VADemon opened this issue Jan 8, 2021 · 1 comment
Open

NPE and Crash when trying to sleep in bed during day #46

VADemon opened this issue Jan 8, 2021 · 1 comment

Comments

@VADemon
Copy link
Contributor

VADemon commented Jan 8, 2021

Server: our favourite

[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] * java.lang.NullPointerException
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.doParseJson(JsonTextParser.java:130)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.parse(JsonTextParser.java:98)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:59)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:39)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger.doLog(SimpleLogger.java:91)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger$ChannelLogger.log(SimpleLogger.java:158)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.Logger.info(Logger.java:102)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:38)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:35)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:64)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:57)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[08/01/2021 23:38:57] [Client] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [INFO] Disconnecting from server...
[08/01/2021 23:38:57] [Client] [INFO] Disconnected.
[08/01/2021 23:38:57] [Server] [INFO] Player disconnected: null
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] * java.lang.NullPointerException
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.doParseJson(JsonTextParser.java:130)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.parse(JsonTextParser.java:98)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:59)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:39)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger.doLog(SimpleLogger.java:91)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger$ChannelLogger.log(SimpleLogger.java:158)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.Logger.info(Logger.java:102)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:38)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:35)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:64)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:57)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[08/01/2021 23:38:57] [Client] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [INFO] Disconnected. Reason: java.util.concurrent.ExecutionException: java.lang.NullPointerException

It probably tried to parse the plaintext bed message as JSON?

Shame, I wanted to afk during the night. Good night!..

@lordmahan
Copy link

same thing with same exception and stacktrace also happens when running some default in-game commands. like /help and /summon. or /tp when there is no perms.
tested on a vanilla server and a paperspigot server. probably has something to do with handling chat packets since bed message is also the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants