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

Placing an enchanted item with a non-existent ench ID will crash when placing it in the first slot of an anvil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w10b
    • Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39a, Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w41b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w47e, Minecraft 13w48a, Minecraft 13w48b, Minecraft 13w49a, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w02a, Minecraft 14w02b, Minecraft 14w02c
    • None
    • Confirmed

      Steps to reproduce

      • Type
        /give <itemID> 1 0 {ench:[1:{id:45,lvl:1}]}

        (for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47) to give yourself an item with a non-existent enchantment ID

      • Place an anvil and place the item in the FIRST slot
        Minecraft will crash
      java.lang.NullPointerException: Updating screen events
      	at yl.e(SourceFile:276)
      	at yl.a(SourceFile:425)
      	at bdo.g(SourceFile:115)
      	at bdo.a(SourceFile:160)
      	at yj.b(SourceFile:83)
      	at yj.a(SourceFile:377)
      	at yl.a(SourceFile:119)
      	at ym.e(SourceFile:40)
      	at py.a(SourceFile:68)
      	at zp.c(SourceFile:77)
      	at yj.a(SourceFile:464)
      	at yl.b(SourceFile:394)
      	at yj.a(SourceFile:193)
      	at bjz.a(SourceFile:308)
      	at bdn.a(SourceFile:490)
      	at bdn.a(SourceFile:318)
      	at bdo.a(SourceFile:121)
      	at bcl.d(SourceFile:232)
      	at bcl.k(SourceFile:211)
      	at azi.p(SourceFile:1308)
      	at azi.ah(SourceFile:760)
      	at azi.f(SourceFile:711)
      	at net.minecraft.client.main.Main.main(SourceFile:152)
      

        1. 2013-09-22_10.53.39.png
          212 kB
          Kumasasa
        2. crash-2013-09-22_09.24.08-client.txt
          6 kB
          Atom clark
        3. crash-2014-01-01_03.14.31-client.txt
          10 kB
          Tails
        4. enchant.png
          144 kB
          Kumasasa

            Unassigned Unassigned
            atomclk00 Atom clark
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: