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

Crash upon attempting to create a new scoreboard objective: java.lang.NullPointerException: Cannot invoke "String.toLowerCase(java.util.Locale)" because "☃" is null

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 21w19a, 21w20a
    • 1.17 Pre-release 1
    • None
    • OS: Windows 10 Education build version 10.0.19041 Build 19041
    • Community Consensus
    • Crash
    • Very Important

    Description

      The bug

      I ran this command and crashed out to the launcher (from this page): 

      /scoreboard objectives add clicked minecraft.used:minecraft.carrot_on_a_stick

      After loading the world back up I was unable to recreate the issue.

      Stack trace

      Description: keyPressed event handler
      
      java.lang.NullPointerException: Cannot invoke "String.toLowerCase(java.util.Locale)" because "☃" is null
      	at di.b(SourceFile:190)
      	at dz.listSuggestions(SourceFile:61)
      	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:69)
      	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:598)
      	at dwm.a(SourceFile:184)
      	at dyw.b(SourceFile:77)
      	at dwr.d(SourceFile:152)
      	at dwr.b(SourceFile:147)
      	at dwr.a(SourceFile:290)
      	at dxg.a(SourceFile:64)
      	at dzz.a(SourceFile:123)
      	at dyw.a(SourceFile:87)
      	at duw.a(SourceFile:367)
      	at dzz.a(SourceFile:489)
      	at duw.a(SourceFile:363)
      	at duw.c(SourceFile:455)
      	at aqe.execute(SourceFile:102)
      	at duw.b(SourceFile:455)
      	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:37)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
      	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:165)
      	at dpa.e(SourceFile:310)
      	at duy.f(SourceFile:1130)
      	at duy.e(SourceFile:721)
      	at net.minecraft.client.main.Main.main(SourceFile:217)
      

      Attachments

        1. crash-2021-05-23_16.12.41-client.txt
          5 kB
          Brent Bosley
        2. crash-2021-05-23_16.12.41-client-deobfuscated.txt
          9 kB
          [Bot] Arisa
        3. crash-2021-05-25_19.08.30-client.txt
          4 kB
          Dylan Risso
        4. image-2021-05-25-19-23-15-414.png
          1 kB
          Dylan Risso
        5. MC-226192.png
          11 kB
          Avoma

        Issue Links

          Activity

            People

              boq [Mojang] Bartosz Bok
              koleoidea Brent Bosley
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: