Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7199

NPE loading or creating world with chunk generator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • macOS Ventura 13.0.1
      Apple Mac M1

    • CraftBukkit version 3615-Spigot-61bffe0-eecb4c0 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT)
    • Yes

      Trying to load a custom world and getting the following error:

      [22:25:30] [Server thread/WARN]: java.lang.NullPointerException: Cannot read field "portalSeed" because "<parameter1>" is null
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.world.level.chunk.ChunkGeneratorStructureState.lambda$2(ChunkGeneratorStructureState.java:110)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.world.level.chunk.ChunkGeneratorStructureState.injectSpigot(ChunkGeneratorStructureState.java:126)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.world.level.chunk.ChunkGeneratorStructureState.createForNormal(ChunkGeneratorStructureState.java:67)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.world.level.chunk.ChunkGenerator.a(ChunkGenerator.java:107)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.level.PlayerChunkMap.<init>(PlayerChunkMap.java:213)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.level.ChunkProviderServer.<init>(ChunkProviderServer.java:81)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.level.WorldServer.<init>(WorldServer.java:284)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_19_R2.CraftServer.createWorld(CraftServer.java:1129)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.Bukkit.createWorld(Bukkit.java:672)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.WorldCreator.createWorld(WorldCreator.java:405)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:486)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.MultiverseCore.utils.WorldManager.addWorld(WorldManager.java:288)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.MultiverseCore.commands.CreateCommand.runCommand(CreateCommand.java:125)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.commandhandler.CommandHandler.checkAndRunCommand(CommandHandler.java:296)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.commandhandler.CommandHandler.processFoundCommands(CommandHandler.java:143)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.commandhandler.CommandHandler.locateAndRunCommand(CommandHandler.java:93)
      [22:25:30] [Server thread/WARN]: 	at com.onarandombox.MultiverseCore.MultiverseCore.onCommand(MultiverseCore.java:839)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:847)
      [22:25:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchServerCommand(CraftServer.java:832)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.bg(DedicatedServer.java:413)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:389)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1201)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1017)
      [22:25:30] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:301)
      [22:25:30] [Server thread/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
      [22
      

      Also had a similar error with:

      Cannot read field "outpostSeed" because "<parameter1>" is null
      

      Happens with both Multiverse and TARDIS as the world loaders - both worked as expected and without errors in 1.19.2.

            Unassigned Unassigned
            eccentric Eccentric Devotion
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: