mojira.dev
MC-159202

Minecraft crashes when placing down player head

The bug

When you place a player head in an armor stand and it appear as a steve/alex head but it doesn't, and the player hotbar has it with steve/alex, place that head down, the game will crash.

Crash report

1.14.4\: [^crash-2019-08-19_22.25.37-client.txt]

Description: Unexpected error

java.lang.NullPointerException: Unexpected error
	at java.util.LinkedList$ListItr.next(LinkedList.java:893)
	at com.google.common.collect.Iterators$8.next(Iterators.java:896)
	at com.google.common.collect.Iterators.addAll(Iterators.java:367)
	at com.google.common.collect.Lists.newArrayList(Lists.java:165)
	at xr.a(SourceFile:214)
	at xr.c(SourceFile:198)
	at xr.a(SourceFile:146)
	at but.b(SourceFile:124)
	at but.f(SourceFile:108)
	at but.a(SourceFile:104)
	at bqp.a(SourceFile:45)
	at bam.a(SourceFile:81)
	at bam.a(SourceFile:41)
	at bcj.a(SourceFile:189)
	at dke.a(SourceFile:325)
	at cyc.aF(SourceFile:1335)
	at cyc.aG(SourceFile:1562)
	at cyc.m(SourceFile:1411)
	at cyc.e(SourceFile:925)
	at cyc.b(SourceFile:410)
	at net.minecraft.client.main.Main.main(SourceFile:155)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at java.util.LinkedList$ListItr.next(LinkedList.java:893)
	at com.google.common.collect.Iterators$8.next(Iterators.java:896)
	at com.google.common.collect.Iterators.addAll(Iterators.java:367)
	at com.google.common.collect.Lists.newArrayList(Lists.java:165)
	at xr.a(SourceFile:214)
	at xr.c(SourceFile:198)
	at xr.a(SourceFile:146)
	at but.b(SourceFile:124)
	at but.f(SourceFile:108)
	at but.a(SourceFile:104)
	at bqp.a(SourceFile:45)
	at bam.a(SourceFile:81)
	at bam.a(SourceFile:41)
	at bcj.a(SourceFile:189)
	at dke.a(SourceFile:325)
	at cyc.aF(SourceFile:1335)
	at cyc.aG(SourceFile:1562)

-- Affected level --
Details:
	All players: 1 total; [dmp['ThePKMNCom4'/1, l='MpServer', x=9.81, y=56.00, z=11.89]]
	Chunk stats: Client Chunk Cache: 361, 225
	Level dimension: minecraft:overworld
	Level name: MpServer
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: {}
	Level spawn location: World: (8,55,8), Chunk: (at 8,3,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 2830 game time, 352 day time
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at dkf.a(SourceFile:421)
	at cyc.b(SourceFile:1923)
	at cyc.b(SourceFile:430)
	at net.minecraft.client.main.Main.main(SourceFile:155)

Linked issues

Attachments

Comments 3

Can you provide the command that you used to get the player head? Also, do you recall what exactly you did to get the game to crash?

/give @p minecraft:player_head{display:{Name:"{\"text\":\"Question Mark\"}"},SkullOwner:"MHF_Question"} 1

I took it from https://minecraft-heads.com/player-heads/alphabet/2765-question-mark

Also, I put the player head on an armor stand, but it showed up as a Steve head. I placed the head down (I was using creative) and the game crashed.

Cannot reproduce in 1.14.4 or 1.16-pre8

Matthew Wong

(Unassigned)

Community Consensus

Crash

1.14.4, 1.15.1 Pre-release 1

Retrieved