PowerRanks

PowerRanks

650k Downloads

Scoreboard null in TablistManager

svenar-nl opened this issue ยท 0 comments

commented
29.06 08:18:55 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[commons-lang-2.6.jar:2.6]
29.06 08:18:55 [Server] INFO at org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer.setScoreboard(CraftPlayer.java:2448) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at nl.svenar.PowerRanks.Data.TablistManager.onPlayerJoin(TablistManager.java:327) ~[PowerRanks.jar:?]
29.06 08:18:55 [Server] INFO at nl.svenar.PowerRanks.Events.OnJoin.onPlayerJoin(OnJoin.java:32) ~[PowerRanks.jar:?]
29.06 08:18:55 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1.execute(Unknown Source) ~[?:?]
29.06 08:18:55 [Server] INFO at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.20-R0.1-SNAPSHOT.jar:?]
29.06 08:18:55 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20-R0.1-SNAPSHOT.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20-R0.1-SNAPSHOT.jar:?]
29.06 08:18:55 [Server] INFO at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[purpur-api-1.20-R0.1-SNAPSHOT.jar:?]
29.06 08:18:55 [Server] INFO at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:339) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at net.minecraft.server.network.ServerLoginPacketListenerImpl.placeNewPlayer(ServerLoginPacketListenerImpl.java:202) ~[?:?]
29.06 08:18:55 [Server] INFO at net.minecraft.server.network.ServerLoginPacketListenerImpl.handleAcceptedLogin(ServerLoginPacketListenerImpl.java:183) ~[?:?]
29.06 08:18:55 [Server] INFO at net.minecraft.server.network.ServerLoginPacketListenerImpl.tick(ServerLoginPacketListenerImpl.java:85) ~[?:?]
29.06 08:18:55 [Server] INFO at net.minecraft.network.Connection.tick(Connection.java:602) ~[?:?]
29.06 08:18:55 [Server] INFO at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:234) ~[?:?]
29.06 08:18:55 [Server] INFO at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1602) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:484) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1421) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.jar:git-Purpur-1990]
29.06 08:18:55 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]

https://github.com/PowerNetworkHub/PowerRanks/blob/1dfb42a35a1e6dbac36ad4f0d196d4e9ae90ff55/src/main/java/nl/svenar/PowerRanks/Data/TablistManager.java#L327C33-L327C33

Exact reasons not known yet, but adding a null check can't do harm.