mojira.dev
MC-122883

Game crash when players suicide or kill other players: java.lang.NullPointerException: Ticking entity

The bug

Killing yourself with an arrow you shot crashes the game. Also affect the splash potion of harming / potion of harming / lingering potion of harming / TNT.

Crash report

17w48a\: [^crash-2017-12-04_20.48.29-server.txt]

Description: Ticking entity

java.lang.NullPointerException: Ticking entity
	at tl.a(SourceFile:28)
	at tl.a(SourceFile:22)
	at tl.<init>(SourceFile:15)
	at tn.a(SourceFile:24)
	at tn$$Lambda$594/171755660.apply(Unknown Source)
	at java.util.Map.computeIfAbsent(Map.java:957)
	at tn.a(SourceFile:24)
	at tn.b(SourceFile:41)
	at qo.a(SourceFile:455)
	at za.a(SourceFile:848)
	at aho.a(SourceFile:888)
	at qo.a(SourceFile:525)
	at ahs.a(SourceFile:343)
	at ahs.H_(SourceFile:264)
	at ail.H_(SourceFile:98)
	at aqg.a(SourceFile:1569)
	at qm.a(SourceFile:705)
	at aqg.h(SourceFile:1545)
	at aqg.k(SourceFile:1427)
	at qm.k(SourceFile:538)
	at net.minecraft.server.MinecraftServer.w(SourceFile:660)
	at net.minecraft.server.MinecraftServer.v(SourceFile:588)
	at ckz.v(SourceFile:152)
	at net.minecraft.server.MinecraftServer.run(SourceFile:493)
	at java.lang.Thread.run(Thread.java:745)

Linked issues

Attachments

Comments 9

Affects 17w50a too.

[media]

Confirmed in 17w50a
for i Died catching arrow shoot upward!

I have this "floor is lava" command (/execute as @a at @s if block ~ ~-.01 ~ minecraft:orange_wool run kill @s) set up in 17w50a that uses /kill and when I try to respawn it crashes.

[media]

@unknown, this is completely unrelated to this bug report here. According to your crash log, your issue would be MC-123363, if you want to contribute to that.

Confirming that the bug affects TNT, arrows, and splash potions of harming in 17w50a. Does not affect falling anvils, nor does the bug occur when the damage-inducing object was fired from a dispenser.

attached server side crash log after blowing up my son with TnT in 17w50a
crash-2017-12-23_08.25.51-server.txt

Arrows still crash 18w01a

Killing self with bow/arrow does NOT crash in 18w02
Killing self with TNT does NOT crash in 18w02

Can confirm that this appears to be fixed in 18w02a onwards. Killing oneself with arrows, TNT or the variations of harming potions does not crash the game.

CocoaMix

(Unassigned)

Confirmed

crash

Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a

Minecraft 18w03b

Retrieved