Mojira Archive
MC-125051

Incorrect structure names in advancements cause java.lang.NullPointerException

The bug

The advancement condition feature causes a crash when specifiying an incorrect structure name:

Example criteria
"criteria": {
    "find_structure": {
        "trigger": "minecraft:location",
        "conditions": {
            "feature": "incorrect_structure_name"
        }
    }
}

Steps to reproduce

  1. Put the attached data pack in your world
  2. Load up the world
  3. Notice that it crashes immediately

Crash report

Description: Ticking player

java.lang.NullPointerException: Ticking player
	at bjo.a(SourceFile:167)
	at au.a(SourceFile:56)
	at au.a(SourceFile:36)
	at av$b.a(SourceFile:79)
	at av$a.a(SourceFile:106)
	at av.a(SourceFile:66)
	at sc.i(SourceFile:417)
	at sx.aa_(SourceFile:189)
	at hg.a(SourceFile:221)
	at sw.c(SourceFile:175)
	at net.minecraft.server.MinecraftServer.w(SourceFile:721)
	at net.minecraft.server.MinecraftServer.v(SourceFile:628)
	at cvl.v(SourceFile:155)
	at net.minecraft.server.MinecraftServer.run(SourceFile:533)
	at java.lang.Thread.run(Thread.java:745)

Fixed

Mario Joaquin Aguirre

2018-02-10, 10:14 PM

2018-12-25, 11:23 PM

2018-12-25, 11:23 PM

3

0

Community Consensus

advancement, crash, structure

Minecraft 18w06a - Minecraft 1.13.1Minecraft 18w06a, Minecraft 18w07a, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13.1

Minecraft 18w49a