Uploaded image for project: 'Minecraft'
  1. Minecraft
  2. MC-46456

Written books given by command crashes when copied in crafting table if "Author" is missing

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w05a, Minecraft 14w30c, Minecraft 14w31a, Minecraft 1.8-pre1, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 1.10.2
    • Fix Version/s: Minecraft 16w38a
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      When you use the give command to get a written book and don't specify any nbt-data you get a book that has no author. If you try to make a copy of it the game crashes.

      Steps to reproduce:
      1. give your self a written book using the command "/give playername minecraft:written_book"
      2. when you try to craft a copy of this book the game crashes

      What probably causes this bug:

      When the game tries to make a copy of the book it also tries to copy the author name of the book but because the book has no author it throws a NullPointerException.

      Description: Updating screen events
      
      java.lang.NullPointerException: Updating screen events
      	at afc.g(SourceFile:47)
      	at afm.a(SourceFile:60)
      	at afv.a(SourceFile:851)
      	at abh.a(SourceFile:82)
      	at aau.a(SourceFile:104)
      	at abq.c(SourceFile:81)
      	at aai.a(SourceFile:238)
      	at bnd.a(SourceFile:357)
      	at bgp.a(SourceFile:515)
      	at bgp.b(SourceFile:486)
      	at bfk.d(SourceFile:248)
      	at bfk.k(SourceFile:219)
      

      Code analysis by [Helper] Marcono1234 in this comment

        Attachments

          Activity

            People

            • Assignee:
              FruBasilicum [Mojang] Agnes Larsson
              Reporter:
              modi68 Jan Eich
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: