mojira.dev
MC-116927

Server crashes with "null" as advancement title or description value

The bug

Setting the title or description of an advancement to null crashes the server.

[^title-null-crash-2017-05-09_15.09.31-server.txt]

Description: Exception in server tick loop

java.lang.NullPointerException: Exception in server tick loop
	at i.<init>(SourceFile:51)
	at i$a.a(SourceFile:170)
	at j.a(SourceFile:65)
	at ng.a(SourceFile:74)
	at ng.<init>(SourceFile:66)
	at ob.b(SourceFile:162)
	at cgl.a(SourceFile:98)
	at cgl.j(SourceFile:130)
	at net.minecraft.server.MinecraftServer.run(SourceFile:436)
	at java.lang.Thread.run(Unknown Source)

[^description-null-crash-2017-05-09_15.20.53-server.txt]

Description: Exception in server tick loop

java.lang.NullPointerException: Exception in server tick loop
	at gw.a(SourceFile:18)
	at i.<init>(SourceFile:54)
	at i$a.a(SourceFile:170)
	at j.a(SourceFile:65)
	at ng.a(SourceFile:74)
	at ng.<init>(SourceFile:66)
	at ob.b(SourceFile:162)
	at cgl.a(SourceFile:98)
	at cgl.j(SourceFile:130)
	at net.minecraft.server.MinecraftServer.run(SourceFile:436)
	at java.lang.Thread.run(Unknown Source)

Note: It is likely that MC-87587 and MC-92867 can cause a crash as well.

How to reproduce

  1. Download the attached advancement

[media]
  1. and place it in the following directory of your world folder

    data\advancements\custom
  2. Load the world

Attachments

Comments 4

Duplicate of MC-116926 (the report before this)

No, not at all. MC-116926 is about advancement files containing only null, while this is about text components like title and description having null as value.

This can be seen in the stack traces as well which are completely different.

@unknown, can you check this issue again? Looks like in 17w18b this advancement doesn't allow advancements to properly load.

Yes it looks like this changed, in 17w18b it causes a server-side crash.

marcono1234

Nathan Adams

Confirmed

advancement, crash, description, null, null-pointer-exception, server, text-component, title

Minecraft 17w17b, Minecraft 17w18b

Minecraft 1.12 Pre-Release 3

Retrieved