Mimics

Mimics

110k Downloads

NPE on server when waking a mimic

cryxli opened this issue ยท 1 comments

commented

Observation

When opening certain chests in e.g. villages, the connection to a stand-alone server is lost.

I'm writing this so complicated because I see no stack trace. But can avoid the error by reverting the world and removing mimics from the server.

The error is not observed on an embedded server (single player world).

Note: It looks very similar to #9 and may be a duplicate.

Setup

Create a server with:

  • Minecraft 1.16.5
  • Fabric API 0.34.6+1.16
  • Mimics 0.1.3

Search world for a mimics and wake them up.

A known mimic can be found in the world with the seed "JRP2234" (no quotes), teleport to 6/70/-469 and enter the hut. The chest in there should be a mimic.

Client will lose connection and cannot connect again. Server will produce a single line of error within Netty

[17:28:08] [Netty Server IO #1/ERROR]: java.lang.NullPointerException: Cannot invoke "String.getBytes(java.nio.charset.Charset)" because "?" is null

Restarting the server will "delete" the mimic/chest and allow clients to connect again.

Hope you can reproduce it. I like your mimics!

Cheers
cryxli

commented

I missed version 0.1.4 of mimics. Therefore, close it as duplicate.
Sorry for the fuss.