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

Items with an empty name field crash the game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w22b
    • None
    • Confirmed

      /give @a minecraft:leather_boots{display:{Name:""}}
      

      Hovering over or selecting the resulting item in your hot bar will crash the game instantly.

      ---- Minecraft Crash Report ----
      // Shall we play a game?
       
      Time: 5/30/18 2:30 PM
      Description: Unexpected error
       
      java.lang.NullPointerException: Unexpected error
          at cjg.e(SourceFile:1053)
          at cio.m(SourceFile:1183)
          at cio.c(SourceFile:790)
          at cio.a(SourceFile:380)
          at net.minecraft.client.main.Main.main(SourceFile:144)
       
       
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
       
      -- Head --
      Thread: Client thread
      Stacktrace:
          at cjg.e(SourceFile:1053)
       
      -- Affected level --
      Details:
          Level name: MpServer
          All players: 1 total; [cvk['Blooded_Wine'/32, l='MpServer', x=8959.08, y=23.51, z=9258.37]]
          Chunk stats: MultiplayerChunkCache: 1089, 1089
          Level seed: 0
          Level generator: ID 01 - flat, ver 0. Features enabled: false
          Level generator options: {}
          Level spawn location: World: (8940,22,9272), Chunk: (at 12,1,8 in 558,579; contains blocks 8928,0,9264 to 8943,255,9279), Region: (17,18; contains chunks 544,576 to 575,607, blocks 8704,0,9216 to 9215,255,9727)
          Level time: 4165549 game time, 2803 day time
          Level dimension: 0
          Level storage version: 0x00000 - Unknown?
          Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
          Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
          Forced entities: 3 total; [cvk['Blooded_Wine'/32, l='MpServer', x=8959.08, y=23.51, z=9258.37], anj['Pig'/30, l='MpServer', x=8895.56, y=14.00, z=9247.75], anj['{"text":"Clock"}'/31, l='MpServer', x=8935.83, y=22.00, z=9318.78]]
          Retry entities: 0 total; []
          Server brand: vanilla
          Server type: Integrated singleplayer server
      Stacktrace:
          at cth.a(SourceFile:391)
          at cio.b(SourceFile:1832)
          at cio.a(SourceFile:393)
          at net.minecraft.client.main.Main.main(SourceFile:144)
       
      -- System Details --
      Details:
          Minecraft Version: 18w22b
          Operating System: Windows 10 (amd64) version 10.0
          Java Version: 1.8.0_51, Oracle Corporation
          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
          Memory: 753914976 bytes (718 MB) / 1174405120 bytes (1120 MB) up to 8589934592 bytes (8192 MB)
          JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
          Launched Version: 18w22b
          LWJGL: 3.1.2 build 29
          OpenGL: Radeon (TM) RX 470 Graphics GL version 4.5.13507 Compatibility Profile Context 23.20.15033.5003, ATI Technologies Inc.
          GL Caps: Using GL 1.3 multitexturing.
      Using GL 1.3 texture combiners.
      Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
      Shaders are available because OpenGL 2.1 is supported.
      VBOs are available because OpenGL 1.5 is supported.
       
          Using VBOs: Yes
          Is Modded: Probably not. Jar signature remains and client brand is untouched.
          Type: Client (map_client.txt)
          Resource Packs:
          Current Language: English (US)
          Profiler Position: N/A (disabled)
          CPU: 4x Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
      

            Unassigned Unassigned
            Blooded_Wine Caiden Block
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: