getWorld is null

Discussion in 'Spigot Help' started by BigWriter23, Jun 30, 2021.

  1. Code (Text):
    [12:06:08] [Server thread/ERROR]: Failed to save chunk -24,-10
    net.minecraft.server.v1_16_R3.ReportedException: Saving entity NBT
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2031) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.a_(Entity.java:1892) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.d(Entity.java:1900) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:603) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:469) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveChunk(PlayerChunkMap.java:1592) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveIncrementally(PlayerChunkMap.java:942) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkProviderServer.saveIncrementally(ChunkProviderServer.java:907) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.WorldServer.saveIncrementally(WorldServer.java:1689) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1447) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1142) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Purpur-1169]
        at java.lang.Thread.run(Unknown Source) [?:?]
    Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getUID()" because the return value of "org.bukkit.Location.getWorld()" is null
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2011) ~[patched_1.16.5.jar:git-Purpur-1169]
        ... 12 more
    [12:06:08] [Server thread/ERROR]: Failed to save chunk -23,-10
    net.minecraft.server.v1_16_R3.ReportedException: Saving entity NBT
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2031) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.a_(Entity.java:1892) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.d(Entity.java:1900) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:603) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:469) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveChunk(PlayerChunkMap.java:1592) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveIncrementally(PlayerChunkMap.java:942) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkProviderServer.saveIncrementally(ChunkProviderServer.java:907) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.WorldServer.saveIncrementally(WorldServer.java:1689) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1447) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1142) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Purpur-1169]
        at java.lang.Thread.run(Unknown Source) [?:?]
    Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getUID()" because the return value of "org.bukkit.Location.getWorld()" is null
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2011) ~[patched_1.16.5.jar:git-Purpur-1169]
        ... 12 more
    [12:06:08] [Server thread/ERROR]: Failed to save chunk -24,-9
    net.minecraft.server.v1_16_R3.ReportedException: Saving entity NBT
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2031) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.a_(Entity.java:1892) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.Entity.d(Entity.java:1900) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:603) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:469) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveChunk(PlayerChunkMap.java:1592) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveIncrementally(PlayerChunkMap.java:942) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.ChunkProviderServer.saveIncrementally(ChunkProviderServer.java:907) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.WorldServer.saveIncrementally(WorldServer.java:1689) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1447) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1142) ~[patched_1.16.5.jar:git-Purpur-1169]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Purpur-1169]
        at java.lang.Thread.run(Unknown Source) [?:?]
    Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getUID()" because the return value of "org.bukkit.Location.getWorld()" is null
        at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:2011) ~[patched_1.16.5.jar:git-Purpur-1169]
        ... 12 more
    I am getting this error when the world is saving.
     
  2. From the Stacktrace I can't identify a direct plugin cause. Remove plugins one by one to identify the cause and if that doesn't help submit a bug report to the Purpur devs or ask in their discord.
     
    • Like Like x 1
  3. Show your code and wrong forum section