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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: Minecraft 14w10b
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                atomclk00 Atom clark
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: