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

Entering only colons into multiplayer Direct Connection & pressing enter crashes the game

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.4, 20w48a, 20w51a, 21w03a, 1.16.5, 21w11a
    • Fix Version/s: 21w14a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Crash
    • Mojang Priority:
      Very Important

      Description

      The bug

      Entering any number of of only colons ":" into the Direct Connection text box, multiplayer will display a greyed out "Join Server" box. Pressing the Enter key anyway will crash the game.

      The game will still wrongly? attempt to connect if enter is pressed with the text field empty, but no crash occurs without the presence of any colons. The presence of any other character other than just colons will cause the "Join Server" button to become clickable and the crash will not occur.

      This crash does not occur in the Add Server menu as pressing enter will do nothing.

      Stack trace

      Description: keyPressed event handler
      
      java.lang.ArrayIndexOutOfBoundsException: 0
      	at edj.a(SourceFile:63)
      	at dtk.<init>(SourceFile:41)
      	at dww.a(SourceFile:233)
      	at dww.f(SourceFile:177)
      	at dtq.h(SourceFile:70)
      	at dtq.a(SourceFile:38)
      	at dpo.a(SourceFile:351)
      	at duk.a(SourceFile:451)
      	at dpo.a(SourceFile:349)
      	at dpo.c(SourceFile:439)
      	at aow.execute(SourceFile:94)
      	at dpo.b(SourceFile:439)
      	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:37)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)
      	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:140)
      	at dpq.e(SourceFile:1076)
      	at dpq.e(SourceFile:688)
      	at net.minecraft.client.main.Main.main(SourceFile:215)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              samgalagoogoo Sam H
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: