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

Crash when going nether portals or creating a single biome world with nether biomes // java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 1.18 Pre-release 4
    • 1.18 Pre-release 3
    • None
    • Confirmed
    • Crash

    Description

      The Bug

      When going through a nether portal the game proceeded to crash due to biome decoration

      Crash report
      Description: Biome decoration
      
      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
      	at java.base/java.util.Objects.checkIndex(Objects.java:359)
      	at java.base/java.util.ArrayList.get(ArrayList.java:427)
      	at cpz.a(SourceFile:303)
      	at cqb.c(SourceFile:146)
      	at cqb.a(SourceFile:289)
      	at acv.a(SourceFile:627)
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
      	at acv.a(SourceFile:621)
      	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
      	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
      	at acx.b(SourceFile:58)
      	at auk.g(SourceFile:91)
      	at auk.a(SourceFile:146)
      	at auk.run(SourceFile:102)
      	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
      
      Game output
      Encountered an unexpected exception
      z: Biome decoration
      	at adz.c(SourceFile:186)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:890)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:823)
      	at fcr.a(SourceFile:99)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:684)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
      	at java.base/java.util.Objects.checkIndex(Objects.java:359)
      	at java.base/java.util.ArrayList.get(ArrayList.java:427)
      	at cpz.a(SourceFile:303)
      	at cqb.c(SourceFile:146)
      	at cqb.a(SourceFile:289)
      	at acv.a(SourceFile:627)
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
      	at acv.a(SourceFile:621)
      	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
      	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
      	at acx.b(SourceFile:58)
      	at auk.g(SourceFile:91)
      	at auk.a(SourceFile:146)
      	at auk.run(SourceFile:102)
      	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
      

      Reproduce

      • Do /setblock ~ ~ ~ nether_portal or go through a nether portal

      Observed Result

      The game crashed

      Expected Result

      The game wouldn't crash

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Thumpbacker [Mod] Anthony Cicinelli
              Votes:
              6 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: