Open Parties and Claims

Open Parties and Claims

25M Downloads

Crash when 2 parties that ally each other are deleted at the same time

thexaero opened this issue ยท 0 comments

commented
---- Minecraft Crash Report ----
// Shall we play a game?

Time: 2023-04-25 23:38:18
Description: Exception in server tick loop

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "xaero.pac.common.server.parties.party.ServerParty.removeAllyParty(java.util.UUID)" because "alliedBy" is null
	at xaero.pac.common.event.CommonEventsFabric.onServerTick(CommonEventsFabric.java:130)
	at xaero.pac.common.event.CommonEventsFabric.lambda$registerFabricAPIEvents$0(CommonEventsFabric.java:85)
	at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$0(ServerTickEvents.java:40)
	at net.minecraft.server.MinecraftServer.handler$bgm000$fabric-lifecycle-events-v1$onStartTick(MinecraftServer.java:6816)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:819)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:665)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "xaero.pac.common.server.parties.party.ServerParty.removeAllyParty(java.util.UUID)" because "alliedBy" is null
	at xaero.pac.common.server.core.ServerCore.onServerTickStart(ServerCore.java:97)
	at xaero.pac.common.event.CommonEvents.onServerTick(CommonEvents.java:165)
	at xaero.pac.common.event.CommonEventsFabric.onServerTick(CommonEventsFabric.java:128)
	... 7 more
Caused by: java.lang.NullPointerException: Cannot invoke "xaero.pac.common.server.parties.party.ServerParty.removeAllyParty(java.util.UUID)" because "alliedBy" is null
	at xaero.pac.common.server.parties.party.task.PartyRemovalSpreadoutTask.onTick(PartyRemovalSpreadoutTask.java:89)
	at xaero.pac.common.server.parties.party.task.PartyRemovalSpreadoutTask.onTick(PartyRemovalSpreadoutTask.java:42)
	at xaero.pac.common.server.task.ServerSpreadoutTaskHandler.onTick(ServerSpreadoutTaskHandler.java:80)
	at xaero.pac.common.server.ServerTickHandler.lambda$onTick$0(ServerTickHandler.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at xaero.pac.common.server.ServerTickHandler.onTick(ServerTickHandler.java:80)
	at xaero.pac.common.server.core.ServerCore.onServerTickStart(ServerCore.java:95)
	... 9 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 1.19.2
	Minecraft Version ID: 1.19.2
	```