mojira.dev
MC-1883

Destroying a Jukebox NPE&Kick

Destroying an "old" (pre 1.4.3) jukebox caused a npe (server) and disconnected the client

java.lang.NullPointerException
at ef.a(SourceFile:311)
at cn.a(SourceFile:47)
at ef.a(SourceFile:215)
at cf.h(SourceFile:178)
at cf.d(SourceFile:15)
at ch.run(SourceFile:114)

I can't seem to reprocude it with jukeboxes placed in 1.4.3

Attachments

Comments 3

Confirmed, All Of The Following Jukeboxes Apply To That Issue:
1. Empty
2. Empty But Had A Music Disk Inside Before
3. Jukebox With Non-Renamed Music Disk
4. Jukebox With An Anvil-Renamed Music Disk Inside

In My Test, It Appears That After The Player Reloads The World(Including After Crash) All The Jukeboxes Seem To Get Fixed.

I Believe That The Problem Is Related To The Recent Change To Jukeboxes Which Makes Them Keep The Custom Title Of The Contained Disk, A Null Pointer Exception Is Caused When The Jukebox Tries To Find A Value For The Disk's Custom Name To Drop But It Returns Null As The Variable Either Does Not Exist Or Is Undefined.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

No response on query, assuming fixed.

Robin Rolf

(Unassigned)

Unconfirmed

crash, destroy, jukebox, multiplayer

Minecraft 1.4.3

Minecraft 1.4.6

Retrieved