Error when deleting Citizens shopkeeper
blablubbabc opened this issue ยท 0 comments
Shopkeepers version: 2.16.0
When deleting a Citizens shopkeeper via the shopkeeper editor menu, the following error is observed:
[Shopkeepers] Task #393014 for Shopkeepers v2.16.0 generated an exception
java.lang.NullPointerException: Cannot invoke "com.nisovin.shopkeepers.api.util.ChunkCoords.getWorldName()" because "lastChunkCoords" is null
at com.nisovin.shopkeepers.shopkeeper.registry.ShopkeeperChunkMap.removeShopkeeper(ShopkeeperChunkMap.java:123) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.shopkeeper.registry.ShopkeeperChunkMap.removeShopkeeper(ShopkeeperChunkMap.java:114) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.shopkeeper.registry.SKShopkeeperRegistry.removeShopkeeper(SKShopkeeperRegistry.java:378) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.shopkeeper.registry.SKShopkeeperRegistry.deleteShopkeeper(SKShopkeeperRegistry.java:429) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.shopkeeper.AbstractShopkeeper.delete(AbstractShopkeeper.java:682) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.ui.editor.EditorHandler.lambda$requestConfirmationDeleteShop$0(EditorHandler.java:145) ~[Shopkeepers-2.16.0.jar:?]
at com.nisovin.shopkeepers.ui.SKUISession.lambda$closeDelayedAndRunTask$0(SKUISession.java:100) ~[Shopkeepers-2.16.0.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-387]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1532) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1456) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-387]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
With enabled assertions:
[Server thread/WARN]: [Shopkeepers] Task #332 for Shopkeepers v2.16.0 generated an exception
java.lang.AssertionError: @AssumeAssertion(nullness)
at com.nisovin.shopkeepers.api.internal.util.Unsafe.assertNonNull(Unsafe.java:69) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.registry.ShopkeeperChunkMap.removeShopkeeper(ShopkeeperChunkMap.java:122) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.registry.ShopkeeperChunkMap.removeShopkeeper(ShopkeeperChunkMap.java:114) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.registry.SKShopkeeperRegistry.removeShopkeeper(SKShopkeeperRegistry.java:378) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.registry.SKShopkeeperRegistry.deleteShopkeeper(SKShopkeeperRegistry.java:429) ~[?:?]
at com.nisovin.shopkeepers.shopkeeper.AbstractShopkeeper.delete(AbstractShopkeeper.java:682) ~[?:?]
at com.nisovin.shopkeepers.ui.editor.EditorHandler.lambda$requestConfirmationDeleteShop$0(EditorHandler.java:145) ~[?:?]
at com.nisovin.shopkeepers.ui.SKUISession.lambda$closeDelayedAndRunTask$0(SKUISession.java:100) ~[?:?]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1285) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:429) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1237) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1047) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:dev-Spigot-42b6152-e87f2e3]
at java.lang.Thread.run(Thread.java:833) [?:?]