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

Selecting obfuscated text in book crashes the game

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      When you edit the book and attempt to select part of text that is obfuscated, the game crashes.

      Crash report

      Description: Rendering screen
      
      java.lang.StringIndexOutOfBoundsException: String index out of range: 35
      	at java.lang.String.substring(String.java:1951)
      	at cor.m(SourceFile:670)
      	at cor.a(SourceFile:614)
      	at cxp.a(SourceFile:795)
      	at cjj.c(SourceFile:817)
      	at cjj.a(SourceFile:380)
      	at net.minecraft.client.main.Main.main(SourceFile:144)
      

      How to reproduce

      1. Open book and quill
      2. Paste § to the book and add the letter 'k'
      3. Continue writing, the text should consist just from randomly changing characters
      4. Try to select obfuscated text

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fcelon Petr Myslík
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: