Jump to content

Recommended Posts

Posted

Hi there!

Im looking for some help figuring out why im getting a nullpointer while trying to connect to a lan server.

Spoiler

java.lang.NullPointerException: null
    at com.mojang.serialization.Encoder$1.encode(Encoder.java:25) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Codec$2.encode(Codec.java:76) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Codec$1.encode(Codec.java:40) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.FieldEncoder.encode(FieldEncoder.java:24) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.MapCodec$1.encode(MapCodec.java:39) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:296) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:298) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$9.encode(RecordCodecBuilder.java:443) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:298) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:298) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$2.encode(RecordCodecBuilder.java:112) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:96) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.FieldEncoder.encode(FieldEncoder.java:24) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.MapCodec$1.encode(MapCodec.java:39) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:297) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.RecordCodecBuilder$2.encode(RecordCodecBuilder.java:112) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:96) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.ListCodec.encode(ListCodec.java:31) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.ListCodec.encode(ListCodec.java:19) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder$1.encode(Encoder.java:25) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Codec$2.encode(Codec.java:76) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.KeyDispatchCodec.encode(KeyDispatchCodec.java:98) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:96) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.BaseMapCodec.encode(BaseMapCodec.java:52) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.UnboundedMapCodec.encode(UnboundedMapCodec.java:43) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.codecs.UnboundedMapCodec.encode(UnboundedMapCodec.java:17) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder$1.encode(Encoder.java:25) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Codec$2.encode(Codec.java:76) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-5.0.28.jar%23120!/:?]
    at net.minecraft.network.FriendlyByteBuf.m_130059_(FriendlyByteBuf.java:115) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5779_(ClientboundLoginPacket.java:69) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:45) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:14) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-codec-4.1.77.Final.jar%23108!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:110) ~[netty-codec-4.1.77.Final.jar%23108!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:790) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:758) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:808) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at net.minecraft.network.Connection.m_243087_(Connection.java:209) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at net.minecraft.network.Connection.lambda$sendPacket$8(Connection.java:198) ~[client-1.19.2-20220805.130853-srg.jar%23400!/:?]
    at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) [netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) [netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) [netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) [netty-transport-4.1.77.Final.jar%23111!/:4.1.77.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) [netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
    at java.lang.Thread.run(Thread.java:833) [?:?]

Thank you for your time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.