[MC-1883] Destroying a Jukebox NPE&Kick Created: 02/Nov/12  Updated: 07/May/15  Resolved: 26/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.3
Fix Version/s: Minecraft 1.4.6

Type: Bug
Reporter: Robin Rolf Assignee: Unassigned
Resolution: Fixed Votes: 3
Labels: crash, destroy, jukebox, multiplayer
Environment:

Win7 x64
Java 7 update 9 x64 (newest)


Attachments: JPEG File Affected Music Discs.jpg    
Confirmation Status: Unconfirmed
Game Mode: Survival

 Description   

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



 Comments   
Comment by Tails [ 26/Dec/12 ]

No response on query, assuming fixed.

Comment by Kumasasa [ 27/Nov/12 ]

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.

Comment by fuj1n (Arthur Uzulin) [ 02/Nov/12 ]

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.

Generated at Sun Jan 12 11:55:58 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.