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

[Bug] Sleeping in bed during day whilst wearing a jetpack creates an error #238

Closed
4 tasks done
AMDBartek opened this issue Mar 21, 2023 · 0 comments
Closed
4 tasks done
Labels
resolution: fixed The bug has been fixed type: bug Something isn't working

Comments

@AMDBartek
Copy link

Agreements

  • I am running the latest version of Nova.
  • I am running the latest version of my server software.
  • I have checked for similar issues.
  • I am using an official build of Nova.

Before creating a bug report, please validate that the issue you're encountering is not caused by another plugin (Remove all other plugins from the server). If it is, please name the plugin that causes the issue.

There are no other plugins running on my server.

Plugin Version, Server Software, Server Version

Nova v0.12.16, git-Purpur-1933 (MC: 1.19.3)

Nova Addons and Versions

Logistics v0.2.3, Jetpacks v0.1.7, Machines v0.3.2

Expected behavior

Just for no error to happen.

Observed/Actual behavior

An error occurs in the console when player right clicks bed during daytime.

Steps to reproduce

  1. Get a bed
  2. Place the bed
  3. Get a Jetpack (I have Ultimate one)
  4. Equip Jetpack
  5. Try to sleep in the bed during daytime

Full server log

https://pastebin.com/zyNnAWcM

Errors

[22:34:32] [Netty Epoll Server IO #3/WARN]: java.lang.reflect.InvocationTargetException
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.event.PacketEventManager.callEvent(PacketEventManager.kt:109)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.event.PacketEventManager.createAndCallEvent$nms_utilities(PacketEventManager.kt:96)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.PacketHandler.callEvent(PacketHandler.kt:105)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.PacketHandler.write(PacketHandler.kt:46)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:879)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:940)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:966)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:934)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1020)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:311)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at ProtocolLib.jar//com.comphenix.protocol.injector.netty.channel.NettyChannelProxy.writeAndFlush(NettyChannelProxy.java:227)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at ProtocolLib.jar//com.comphenix.protocol.injector.netty.channel.NettyChannelProxy.writeAndFlush(NettyChannelProxy.java:233)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at net.minecraft.network.NetworkManager.doSendPacket(NetworkManager.java:459)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at net.minecraft.network.NetworkManager.lambda$sendPacket$11(NetworkManager.java:433)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at ProtocolLib.jar//com.comphenix.protocol.injector.netty.channel.NettyEventLoopProxy.lambda$proxyRunnable$2(NettyEventLoopProxy.java:48)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:403)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[22:34:32] [Netty Epoll Server IO #3/WARN]: Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at java.base/java.io.StringReader.<init>(StringReader.java:51)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at com.google.gson.JsonParser.parseString(JsonParser.java:51)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at com.google.gson.JsonParser.parse(JsonParser.java:115)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at net.md_5.bungee.chat.ComponentSerializer.parse(ComponentSerializer.java:48)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.event.clientbound.ClientboundSystemChatPacketEvent$message$3.invoke(ClientboundSystemChatPacketEvent.kt:22)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.event.clientbound.ClientboundSystemChatPacketEvent$message$3.invoke(ClientboundSystemChatPacketEvent.kt:21)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.internal.MutableLazy.getValue(MutableLazy.kt:19)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nmsutils.network.event.clientbound.ClientboundSystemChatPacketEvent.getMessage(ClientboundSystemChatPacketEvent.kt:21)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	at xyz.xenondevs.nova.ui.overlay.actionbar.ActionbarOverlayManager.handleChatPacket(ActionbarOverlayManager.kt:82)
[22:34:32] [Netty Epoll Server IO #3/WARN]: 	... 26 more

Additional context

This seems to happen due to the "You can sleep only at night or during thunderstorms" and "Bed is too far" messages.

Only plugins are Nova, ProtocolLib, and LuckPerms.

@AMDBartek AMDBartek added the type: bug Something isn't working label Mar 21, 2023
@NichtStudioCode NichtStudioCode added the resolution: fixed The bug has been fixed label Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed The bug has been fixed type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants