Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-125051

Incorrect structure names in advancements cause java.lang.NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w49a
    • Minecraft 18w06a, Minecraft 18w07a, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13.1
    • Community Consensus

      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)
      

        1. crash-2018-02-10_21.05.48-server.txt
          3 kB
          Mario Joaquin Aguirre

            Unassigned Unassigned
            CrazyCraftyGamer Mario Joaquin Aguirre
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: